genext2fs-1.4-remove_ugly_warnings.patch 762 B

123456789101112131415161718192021
  1. diff -ru genext2fs-1.4/genext2fs.c genext2fs-1.4-remove_ugly_warnings/genext2fs.c
  2. --- genext2fs-1.4/genext2fs.c 2007-02-09 10:54:56.000000000 +0100
  3. +++ genext2fs-1.4-remove_ugly_warnings/genext2fs.c 2007-02-09 10:54:30.000000000 +0100
  4. @@ -1606,7 +1606,7 @@
  5. static void
  6. add2fs_from_dir(filesystem *fs, uint32 this_nod, int squash_uids, int squash_perms, uint32 fs_timestamp, struct stats *stats)
  7. {
  8. - uint32 nod;
  9. + uint32 nod = 0;
  10. uint32 uid, gid, mode, ctime, mtime;
  11. const char *name;
  12. FILE *fh;
  13. @@ -2056,7 +2056,7 @@
  14. static filesystem *
  15. load_fs(FILE * fh, int swapit)
  16. {
  17. - size_t fssize;
  18. + size_t fssize = 0;
  19. filesystem *fs;
  20. if((fseek(fh, 0, SEEK_END) < 0) || ((ssize_t)(fssize = ftell(fh)) == -1))
  21. perror_msg_and_die("input filesystem image");