diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-16 01:37:00 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-12-16 17:58:09 +0000 |
commit | 2943ac5381ed424348c66db76cd6869dbdf71710 (patch) | |
tree | 527f5d273cdad18b69de94b743e67c98204aaa94 /epan/dissectors/packet-ieee8021ah.c | |
parent | 6d60c4d4684c2c03a43f1b8720497348cf17d357 (diff) |
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 'epan/dissectors/packet-ieee8021ah.c')
0 files changed, 0 insertions, 0 deletions