From: Mika Lindqvist Date: Mon, 18 May 2015 22:35:49 +0000 (+0300) Subject: Replace (void *)0 with NULL. X-Git-Tag: 1.9.9-b1~809^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F35%2Fhead;p=thirdparty%2Fzlib-ng.git Replace (void *)0 with NULL. --- 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;