summaryrefslogtreecommitdiff
path: root/wiretap/wtap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-16 01:37:00 -0800
committerGuy Harris <guy@alum.mit.edu>2015-12-16 17:58:09 +0000
commit2943ac5381ed424348c66db76cd6869dbdf71710 (patch)
tree527f5d273cdad18b69de94b743e67c98204aaa94 /wiretap/wtap.c
parent6d60c4d4684c2c03a43f1b8720497348cf17d357 (diff)
downloadwireshark-2943ac5381ed424348c66db76cd6869dbdf71710.tar.gz
Make zlib API constness-aware, take 2.
ZLIB_CONST must be defined before including zlib.h to expose z_const, *AND* z_const shouldn't be used unless it's defined, because older versions of zlib don't define it even if you define ZLIB_CONST. While we're at it, throw in some DIAG_OFF(cast-qual)/DIAG_ON(cast-qual) pairs to suppress unavoidable "cast throws away const qualification" warnings. The original "make zlib constness-aware" change also removed an unnecessary include of <zlib.h> from wiretap/wtap.c, so we do that as well. Change-Id: I3c5269a8fbc54bbbb4d316544cc7b8fa30614c19 Reviewed-on: https://code.wireshark.org/review/12675 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r--wiretap/wtap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 30b66cd46f..c4c35e8a74 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -27,10 +27,6 @@
#include <sys/types.h>
#endif
-#ifdef HAVE_LIBZ
-#include <zlib.h>
-#endif
-
#include "wtap-int.h"
#include "file_wrappers.h"