12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- --- dosfstools-3.0.26.orig/src/check.c 2014-03-07 18:35:11.000000000 +0100
- +++ dosfstools-3.0.26/src/check.c 2014-03-26 10:04:41.000000000 +0100
- @@ -64,7 +64,7 @@ static DOS_FILE *root;
- p->dir_ent.start = htole16(__v&0xffff); \
- p->dir_ent.starthi = htole16(__v>>16); \
- __v = htole32(__v); \
- - fs_write((loff_t)offsetof(struct boot_sector,root_cluster), \
- + fs_write((off_t)offsetof(struct boot_sector,root_cluster), \
- sizeof(((struct boot_sector *)0)->root_cluster), \
- &__v); \
- } \
- @@ -75,16 +75,16 @@ static DOS_FILE *root;
- } \
- } while(0)
-
- -loff_t alloc_rootdir_entry(DOS_FS * fs, DIR_ENT * de, const char *pattern)
- +off_t alloc_rootdir_entry(DOS_FS * fs, DIR_ENT * de, const char *pattern)
- {
- static int curr_num = 0;
- - loff_t offset;
- + off_t offset;
-
- if (fs->root_cluster) {
- DIR_ENT d2;
- int i = 0, got = 0;
- uint32_t clu_num, prev = 0;
- - loff_t offset2;
- + off_t offset2;
-
- clu_num = fs->root_cluster;
- offset = cluster_start(fs, clu_num);
- @@ -333,7 +333,7 @@ static int bad_name(DOS_FILE * file)
- return 0;
- }
-
- -static void lfn_remove(loff_t from, loff_t to)
- +static void lfn_remove(off_t from, off_t to)
- {
- DIR_ENT empty;
-
- @@ -949,7 +949,7 @@ static void new_dir(void)
- * @param cp
- */
- static void add_file(DOS_FS * fs, DOS_FILE *** chain, DOS_FILE * parent,
- - loff_t offset, FDSC ** cp)
- + off_t offset, FDSC ** cp)
- {
- DOS_FILE *new;
- DIR_ENT de;
|