From 15ae16292c4c5a241ab5cc4ef458aed05d82e4cf Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Mon, 13 Feb 2017 18:17:37 +0200 Subject: [PATCH] Replace remaining Z_NULL instances with NULL. --- arch/x86/crc_pclmulqdq.c | 2 +- crc32.c | 2 +- deflate.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/crc_pclmulqdq.c b/arch/x86/crc_pclmulqdq.c index 04281ca5..a513d6cc 100644 --- a/arch/x86/crc_pclmulqdq.c +++ b/arch/x86/crc_pclmulqdq.c @@ -14,7 +14,7 @@ ZLIB_INTERNAL void crc_reset(deflate_state *const s) { crc_fold_init(s); return; } - s->strm->adler = crc32(0L, Z_NULL, 0); + s->strm->adler = crc32(0L, NULL, 0); } ZLIB_INTERNAL void crc_finalize(deflate_state *const s) { diff --git a/crc32.c b/crc32.c index 82845909..4f71b220 100644 --- a/crc32.c +++ b/crc32.c @@ -442,7 +442,7 @@ uint32_t ZEXPORT crc32_combine64(uint32_t crc1, uint32_t crc2, z_off64_t len2) { #ifndef X86_PCLMULQDQ_CRC ZLIB_INTERNAL void crc_reset(deflate_state *const s) { - s->strm->adler = crc32(0L, Z_NULL, 0); + s->strm->adler = crc32(0L, NULL, 0); } ZLIB_INTERNAL void copy_with_crc(z_stream *strm, unsigned char *dst, unsigned long size) { diff --git a/deflate.c b/deflate.c index a11b5ebd..bd1c69a4 100644 --- a/deflate.c +++ b/deflate.c @@ -836,7 +836,7 @@ int ZEXPORT deflate(z_stream *strm, int flush) { } } if (s->status == EXTRA_STATE) { - if (s->gzhead->extra != Z_NULL) { + if (s->gzhead->extra != NULL) { uint32_t beg = s->pending; /* start of bytes to update crc */ uint32_t left = (s->gzhead->extra_len & 0xffff) - s->gzindex; -- 2.47.2