]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Replace (void *)0 with NULL. 35/head
authorMika Lindqvist <postmaster@raasu.org>
Mon, 18 May 2015 22:35:49 +0000 (01:35 +0300)
committerMika Lindqvist <postmaster@raasu.org>
Fri, 22 May 2015 20:17:30 +0000 (23:17 +0300)
compress.c
deflate.c
infback.c
inflate.c

index 9af08d0451cb6d1bd518ab0ffdbd083d294f5a05..679c50381d191a0bc1ccfd8f3ab2caf415811a4f 100644 (file)
@@ -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;
index ef8a0c3b0fad13ac34c03c81fadc1791be6ed10f..932d732ef0f79ba379bd4a802ed6738bbb167836 100644 (file)
--- 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;
index 08e77fa455f18294dc5da1bd27ebca06442a4173..ead697bd6872e38008dff518e595cef6349412a8 100644 (file)
--- 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;
index a63f699bbdc3368e7a2c1b7b17e3101831d2efaa..24a4b4f3ff5b8a23c5dde367adc456d4eddf3403 100644 (file)
--- 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;