From d69ac2b18baf0b62f62e0f8b19a861efb7ce536a Mon Sep 17 00:00:00 2001 From: Spegelius Date: Sun, 23 Nov 2014 15:15:06 +0200 Subject: Changed off_t to loff_t - off_t is long, loff_t is long long (32bit vs. 64bit) - exfat requites 64 bit to support larger than 2GB fs Change-Id: I70293e45d7d6686317edc759092e738a2ebdd860 --- exfat/libexfat/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exfat/libexfat/utils.c') diff --git a/exfat/libexfat/utils.c b/exfat/libexfat/utils.c index 388f360d9..39d708e6e 100644 --- a/exfat/libexfat/utils.c +++ b/exfat/libexfat/utils.c @@ -161,8 +161,8 @@ void exfat_print_info(const struct exfat_super_block* sb, uint32_t free_clusters) { struct exfat_human_bytes hb; - off_t total_space = le64_to_cpu(sb->sector_count) * SECTOR_SIZE(*sb); - off_t avail_space = (off_t) free_clusters * CLUSTER_SIZE(*sb); + loff_t total_space = le64_to_cpu(sb->sector_count) * SECTOR_SIZE(*sb); + loff_t avail_space = (loff_t) free_clusters * CLUSTER_SIZE(*sb); printf("File system version %hhu.%hhu\n", sb->version.major, sb->version.minor); -- cgit v1.2.3