summaryrefslogtreecommitdiff
path: root/package/dosfstools/patches/patch-src_fat_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-26 21:13:01 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-26 21:13:01 +0100
commitc48fde9c51983494910925bc4a13cf862f320d38 (patch)
tree1d024def3e43c4544e860a9fcab48707197a29a9 /package/dosfstools/patches/patch-src_fat_c
parent291a3cf5e1ba11aa9e548a756fe85c51d7b3217f (diff)
parent199f633fb1077c7ffedff161726e9229e7312152 (diff)
Merge branch 'master' of git+ssh://www.openadk.org/git/openadk
Diffstat (limited to 'package/dosfstools/patches/patch-src_fat_c')
-rw-r--r--package/dosfstools/patches/patch-src_fat_c32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/dosfstools/patches/patch-src_fat_c b/package/dosfstools/patches/patch-src_fat_c
new file mode 100644
index 000000000..15bfd16db
--- /dev/null
+++ b/package/dosfstools/patches/patch-src_fat_c
@@ -0,0 +1,32 @@
+--- dosfstools-3.0.26.orig/src/fat.c 2014-01-17 07:07:05.000000000 +0100
++++ dosfstools-3.0.26/src/fat.c 2014-03-26 13:37:03.000000000 +0100
+@@ -180,7 +180,7 @@ void set_fat(DOS_FS * fs, uint32_t clust
+ {
+ unsigned char *data = NULL;
+ int size;
+- loff_t offs;
++ off_t offs;
+
+ if (new == -1)
+ new = FAT_EOF(fs);
+@@ -264,9 +264,9 @@ uint32_t next_cluster(DOS_FS * fs, uint3
+ return FAT_IS_EOF(fs, value) ? -1 : value;
+ }
+
+-loff_t cluster_start(DOS_FS * fs, uint32_t cluster)
++off_t cluster_start(DOS_FS * fs, uint32_t cluster)
+ {
+- return fs->data_start + ((loff_t) cluster -
++ return fs->data_start + ((off_t) cluster -
+ 2) * (uint64_t)fs->cluster_size;
+ }
+
+@@ -475,7 +475,7 @@ void reclaim_file(DOS_FS * fs)
+ /* If this cluster is the head of an orphan chain... */
+ if (get_owner(fs, i) == &orphan && !num_refs[i]) {
+ DIR_ENT de;
+- loff_t offset;
++ off_t offset;
+ files++;
+ offset = alloc_rootdir_entry(fs, &de, "FSCK%04dREC");
+ de.start = htole16(i & 0xffff);