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