From d6523bc5d50f05805821efd05db3a6a78b9ccca7 Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Tue, 19 May 2015 01:35:49 +0300 Subject: [PATCH] Replace (void *)0 with NULL. --- compress.c | 2 +- deflate.c | 2 +- infback.c | 2 +- inflate.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compress.c b/compress.c index 9af08d04..679c5038 100644 --- a/compress.c +++ b/compress.c @@ -33,7 +33,7 @@ int ZEXPORT compress2 (unsigned char *dest, uLong *destLen, const unsigned char stream.zalloc = (alloc_func)0; stream.zfree = (free_func)0; - stream.opaque = (void *)0; + stream.opaque = NULL; err = deflateInit(&stream, level); if (err != Z_OK) return err; diff --git a/deflate.c b/deflate.c index ef8a0c3b..932d732e 100644 --- a/deflate.c +++ b/deflate.c @@ -267,7 +267,7 @@ int ZEXPORT deflateInit2_(z_stream *strm, int level, int method, int windowBits, strm->msg = Z_NULL; if (strm->zalloc == (alloc_func)0) { strm->zalloc = zcalloc; - strm->opaque = (void *)0; + strm->opaque = NULL; } if (strm->zfree == (free_func)0) strm->zfree = zcfree; diff --git a/infback.c b/infback.c index 08e77fa4..ead697bd 100644 --- a/infback.c +++ b/infback.c @@ -39,7 +39,7 @@ int ZEXPORT inflateBackInit_(z_stream *strm, int windowBits, unsigned char *wind strm->msg = Z_NULL; /* in case we return an error */ if (strm->zalloc == (alloc_func)0) { strm->zalloc = zcalloc; - strm->opaque = (void *)0; + strm->opaque = NULL; } if (strm->zfree == (free_func)0) strm->zfree = zcfree; diff --git a/inflate.c b/inflate.c index a63f699b..24a4b4f3 100644 --- a/inflate.c +++ b/inflate.c @@ -184,7 +184,7 @@ int ZEXPORT inflateInit2_(z_stream *strm, int windowBits, const char *version, strm->msg = Z_NULL; /* in case we return an error */ if (strm->zalloc == (alloc_func)0) { strm->zalloc = zcalloc; - strm->opaque = (void *)0; + strm->opaque = NULL; } if (strm->zfree == (free_func)0) strm->zfree = zcfree; -- 2.47.2