Package: jzip / 210r20001005d-2

zlib-update Patch series | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From 27466cfcb538dcc33ad99328e732da1b031bd03a Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Thu, 22 Mar 2012 22:51:31 +0200
Subject: [PATCH] zlib 1.2.5.2 compatibility

---
 fileio.c  |    2 +-
 quetzal.c |    4 ++--
 ztypes.h  |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fileio.c b/fileio.c
index 49b2fa3..743e2d0 100644
--- a/fileio.c
+++ b/fileio.c
@@ -39,7 +39,7 @@
 extern int GLOBALVER;
 
 #ifdef USE_ZLIB
-static gzFile *gfp = NULL;      /* Zcode file pointer */
+static gzFile gfp = NULL;      /* Zcode file pointer */
 #else
 static FILE *gfp = NULL;        /* Zcode file pointer */
 #endif
diff --git a/quetzal.c b/quetzal.c
index 291caf3..6445d33 100644
--- a/quetzal.c
+++ b/quetzal.c
@@ -77,7 +77,7 @@ typedef unsigned long ul_t;
  */
 
 #ifdef USE_ZLIB
-int save_quetzal( FILE * sfp, gzFile * gfp )
+int save_quetzal( FILE * sfp, gzFile gfp )
 #else
 int save_quetzal( FILE * sfp, FILE * gfp )
 #endif
@@ -294,7 +294,7 @@ static int read_long( FILE * fp, ul_t * result )
 #define GOT_ERROR	0x80
 
 #ifdef USE_ZLIB
-int restore_quetzal( FILE * sfp, gzFile * gfp )
+int restore_quetzal( FILE * sfp, gzFile gfp )
 #else
 int restore_quetzal( FILE * sfp, FILE * gfp )
 #endif
diff --git a/ztypes.h b/ztypes.h
index 8c558f4..ccd619c 100644
--- a/ztypes.h
+++ b/ztypes.h
@@ -706,8 +706,8 @@ void z_storew( zword_t, zword_t, zword_t );
 /* quetzal.c */
 
 #ifdef USE_ZLIB
-int save_quetzal( FILE *, gzFile * );
-int restore_quetzal( FILE *, gzFile * );
+int save_quetzal( FILE *, gzFile );
+int restore_quetzal( FILE *, gzFile );
 #else
 int save_quetzal( FILE *, FILE * );
 int restore_quetzal( FILE *, FILE * );
-- 
1.7.9.1