summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2016-04-25 22:59:59 +0300
committerHans Kristian Rosbach <hk-git@circlestorm.org>2017-01-31 10:53:22 +0100
commit602531cf3de544e7b1e2db8ce8f05e3ebc355ca2 (patch)
treefd5e1c39f2b23257f6f55a0f8b0963a5f99eaad8 /test/example.c
parent806e48855fb41fa6797dd03eb8c99ab1abe2313a (diff)
Replace Z_NULL with NULL. Fix incorrect uses of NULL/Z_NULL.
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/example.c b/test/example.c
index 43d1a16..6d9bad3 100644
--- a/test/example.c
+++ b/test/example.c
@@ -40,8 +40,8 @@ void test_dict_inflate (unsigned char *compr, size_t comprLen, unsigned char *u
int main (int argc, char *argv[]);
-static alloc_func zalloc = (alloc_func)0;
-static free_func zfree = (free_func)0;
+static alloc_func zalloc = NULL;
+static free_func zfree = NULL;
void test_compress (unsigned char *compr, size_t comprLen,
unsigned char *uncompr, size_t uncomprLen);
@@ -512,7 +512,7 @@ int main(int argc, char *argv[])
/* compr and uncompr are cleared to avoid reading uninitialized
* data and to ensure that uncompr compresses well.
*/
- if (compr == Z_NULL || uncompr == Z_NULL) {
+ if (compr == NULL || uncompr == NULL) {
printf("out of memory\n");
exit(1);
}