Skip to content

Commit

Permalink
Replace (void *)0 with NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtl1979 committed May 22, 2015
1 parent 10a8002 commit d6523bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion infback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d6523bc

Please sign in to comment.