1
0

patch-src_check_c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --- dosfstools-3.0.26.orig/src/check.c 2014-03-07 18:35:11.000000000 +0100
  2. +++ dosfstools-3.0.26/src/check.c 2014-03-26 10:04:41.000000000 +0100
  3. @@ -64,7 +64,7 @@ static DOS_FILE *root;
  4. p->dir_ent.start = htole16(__v&0xffff); \
  5. p->dir_ent.starthi = htole16(__v>>16); \
  6. __v = htole32(__v); \
  7. - fs_write((loff_t)offsetof(struct boot_sector,root_cluster), \
  8. + fs_write((off_t)offsetof(struct boot_sector,root_cluster), \
  9. sizeof(((struct boot_sector *)0)->root_cluster), \
  10. &__v); \
  11. } \
  12. @@ -75,16 +75,16 @@ static DOS_FILE *root;
  13. } \
  14. } while(0)
  15. -loff_t alloc_rootdir_entry(DOS_FS * fs, DIR_ENT * de, const char *pattern)
  16. +off_t alloc_rootdir_entry(DOS_FS * fs, DIR_ENT * de, const char *pattern)
  17. {
  18. static int curr_num = 0;
  19. - loff_t offset;
  20. + off_t offset;
  21. if (fs->root_cluster) {
  22. DIR_ENT d2;
  23. int i = 0, got = 0;
  24. uint32_t clu_num, prev = 0;
  25. - loff_t offset2;
  26. + off_t offset2;
  27. clu_num = fs->root_cluster;
  28. offset = cluster_start(fs, clu_num);
  29. @@ -333,7 +333,7 @@ static int bad_name(DOS_FILE * file)
  30. return 0;
  31. }
  32. -static void lfn_remove(loff_t from, loff_t to)
  33. +static void lfn_remove(off_t from, off_t to)
  34. {
  35. DIR_ENT empty;
  36. @@ -949,7 +949,7 @@ static void new_dir(void)
  37. * @param cp
  38. */
  39. static void add_file(DOS_FS * fs, DOS_FILE *** chain, DOS_FILE * parent,
  40. - loff_t offset, FDSC ** cp)
  41. + off_t offset, FDSC ** cp)
  42. {
  43. DOS_FILE *new;
  44. DIR_ENT de;