summaryrefslogtreecommitdiffstats
path: root/exfat/mkfs/vbr.c
diff options
context:
space:
mode:
authorSpegelius <spegelius@gmail.com>2014-11-23 14:15:06 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-12-23 18:50:35 +0100
commitd69ac2b18baf0b62f62e0f8b19a861efb7ce536a (patch)
treed67ff95ff3fb81732287d5cbf512e07eb94904a9 /exfat/mkfs/vbr.c
parentfuse: Update to 2.9.4 (diff)
downloadandroid_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.tar
android_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.tar.gz
android_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.tar.bz2
android_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.tar.lz
android_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.tar.xz
android_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.tar.zst
android_bootable_recovery-d69ac2b18baf0b62f62e0f8b19a861efb7ce536a.zip
Diffstat (limited to 'exfat/mkfs/vbr.c')
-rw-r--r--exfat/mkfs/vbr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exfat/mkfs/vbr.c b/exfat/mkfs/vbr.c
index 702aa6d14..a45cc9003 100644
--- a/exfat/mkfs/vbr.c
+++ b/exfat/mkfs/vbr.c
@@ -27,12 +27,12 @@
#include "rootdir.h"
#include <string.h>
-static off_t vbr_alignment(void)
+static loff_t vbr_alignment(void)
{
return get_sector_size();
}
-static off_t vbr_size(void)
+static loff_t vbr_size(void)
{
return 12 * get_sector_size();
}
@@ -43,7 +43,7 @@ static void init_sb(struct exfat_super_block* sb)
uint32_t fat_sectors;
clusters_max = get_volume_size() / get_cluster_size();
- fat_sectors = DIV_ROUND_UP((off_t) clusters_max * sizeof(cluster_t),
+ fat_sectors = DIV_ROUND_UP((loff_t) clusters_max * sizeof(cluster_t),
get_sector_size());
memset(sb, 0, sizeof(struct exfat_super_block));