[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] fix build warnings with newer zlib

From: Mike Frysinger
Subject: [Bug-wget] [PATCH] fix build warnings with newer zlib
Date: Mon, 21 May 2012 19:06:01 -0400

The gz* API from zlib takes a "gzFile", not a "gzFile*".  Older
versions of zlib didn't trigger a warning due to how the funcs
were written, but newer ones do.  So tweak the type (which in
reality shouldn't change anything since it's a typedefed pointer)
to work with old/new versions.

Signed-off-by: Mike Frysinger <address@hidden>
 src/warc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/warc.c b/src/warc.c
index 57fdcad..9b4329d 100644
--- a/src/warc.c
+++ b/src/warc.c
@@ -75,7 +75,7 @@ static FILE *warc_current_file;
 #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

[Prev in Thread] Current Thread [Next in Thread]