warc_current_gzfile must be of type gzFile, not gzFile *.

It also fixed these compiler warnings:
warc.c: In function 'warc_write_buffer':
warc.c:144:7: warning: passing argument 1 of 'gzwrite' from incompatible 
pointer type [enabled by default]
/usr/include/zlib.h:1318:21: note: expected 'gzFile' but argument is of type 
'struct gzFile_s **'
warc.c: In function 'warc_write_start_record':
warc.c:207:27: warning: assignment from incompatible pointer type [enabled by 
default]
warc.c: In function 'warc_write_end_record':
warc.c:290:7: warning: passing argument 1 of 'gzclose' from incompatible 
pointer type [enabled by default]
/usr/include/zlib.h:1488:24: note: expected 'gzFile' but argument is of type 
'struct gzFile_s **'

Tim
=== modified file 'src/warc.c'
--- src/warc.c	2012-04-02 11:26:23 +0000
+++ src/warc.c	2012-04-13 09:26:49 +0000
@@ -75,7 +75,7 @@
 #ifdef HAVE_LIBZ
 /* The gzip stream for the current WARC file
    (or NULL, if WARC or gzip is disabled). */
-static gzFile *warc_current_gzfile;
+static gzFile warc_current_gzfile;
 
 /* The offset of the current gzip record in the WARC file. */
 static off_t warc_current_gzfile_offset;

Reply via email to