vice-2.4-zlib-1.2.7.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- a/src/zfile.c 2012-10-13 14:53:16.000000000 +0200
  2. +++ b/src/zfile.c 2012-11-03 18:47:40.000000000 +0100
  3. @@ -198,10 +198,10 @@
  4. do {
  5. char buf[256];
  6. - len = gzread(fdsrc, (void *)buf, 256);
  7. + len = gzread((gzFile)fdsrc, (void *)buf, 256);
  8. if (len > 0) {
  9. if (fwrite((void *)buf, 1, (size_t)len, fddest) < len) {
  10. - gzclose(fdsrc);
  11. + gzclose((gzFile)fdsrc);
  12. fclose(fddest);
  13. ioutil_remove(tmp_name);
  14. lib_free(tmp_name);
  15. @@ -210,7 +210,7 @@
  16. }
  17. } while (len > 0);
  18. - gzclose(fdsrc);
  19. + gzclose((gzFile)fdsrc);
  20. fclose(fddest);
  21. return tmp_name;
  22. @@ -779,10 +779,10 @@
  23. char buf[256];
  24. len = fread((void *)buf, 256, 1, fdsrc);
  25. if (len > 0)
  26. - gzwrite(fddest, (void *)buf, (unsigned int)len);
  27. + gzwrite((gzFile)fddest, (void *)buf, (unsigned int)len);
  28. } while (len > 0);
  29. - gzclose(fddest);
  30. + gzclose((gzFile)fddest);
  31. fclose(fdsrc);
  32. archdep_file_set_gzip(dest);