summaryrefslogtreecommitdiffstats
path: root/exfat/mkfs/fat.c
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2015-12-13 18:29:45 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-12-23 16:56:56 +0100
commit09ef1e410970b74df384047fcf4c0e18a6ec3643 (patch)
tree6e88024c45cfb5a66220f2910f853e774f07fb16 /exfat/mkfs/fat.c
parentexfat: Build fsck and update path to mkfs (diff)
downloadandroid_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.tar
android_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.tar.gz
android_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.tar.bz2
android_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.tar.lz
android_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.tar.xz
android_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.tar.zst
android_bootable_recovery-09ef1e410970b74df384047fcf4c0e18a6ec3643.zip
Diffstat (limited to 'exfat/mkfs/fat.c')
-rw-r--r--exfat/mkfs/fat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/exfat/mkfs/fat.c b/exfat/mkfs/fat.c
index 9ed90223e..c70dc8637 100644
--- a/exfat/mkfs/fat.c
+++ b/exfat/mkfs/fat.c
@@ -3,7 +3,7 @@
File Allocation Table creation code.
Free exFAT implementation.
- Copyright (C) 2011-2013 Andrew Nayenko
+ Copyright (C) 2011-2015 Andrew Nayenko
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,18 +20,18 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <unistd.h>
#include "fat.h"
#include "cbm.h"
#include "uct.h"
#include "rootdir.h"
+#include <unistd.h>
-static off64_t fat_alignment(void)
+static off_t fat_alignment(void)
{
- return (off64_t) 128 * get_sector_size();
+ return (off_t) 128 * get_sector_size();
}
-static off64_t fat_size(void)
+static off_t fat_size(void)
{
return get_volume_size() / get_cluster_size() * sizeof(cluster_t);
}