summaryrefslogtreecommitdiffstats
path: root/exfat/mkfs/main.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/main.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 '')
-rw-r--r--exfat/mkfs/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exfat/mkfs/main.c b/exfat/mkfs/main.c
index 2ee6da6ac..43bc0fbea 100644
--- a/exfat/mkfs/main.c
+++ b/exfat/mkfs/main.c
@@ -51,7 +51,7 @@ static struct
{
int sector_bits;
int spc_bits;
- off_t volume_size;
+ loff_t volume_size;
le16_t volume_label[EXFAT_ENAME_MAX + 1];
uint32_t volume_serial;
uint64_t first_sector;
@@ -68,7 +68,7 @@ int get_spc_bits(void)
return param.spc_bits;
}
-off_t get_volume_size(void)
+loff_t get_volume_size(void)
{
return param.volume_size;
}
@@ -98,13 +98,13 @@ int get_cluster_size(void)
return get_sector_size() << get_spc_bits();
}
-static int setup_spc_bits(int sector_bits, int user_defined, off_t volume_size)
+static int setup_spc_bits(int sector_bits, int user_defined, loff_t volume_size)
{
int i;
if (user_defined != -1)
{
- off_t cluster_size = 1 << sector_bits << user_defined;
+ loff_t cluster_size = 1 << sector_bits << user_defined;
if (volume_size / cluster_size > EXFAT_LAST_DATA_CLUSTER)
{
struct exfat_human_bytes chb, vhb;