aboutsummaryrefslogtreecommitdiff
path: root/src/zlib-ng/test/infcover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zlib-ng/test/infcover.c')
-rw-r--r--src/zlib-ng/test/infcover.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/zlib-ng/test/infcover.c b/src/zlib-ng/test/infcover.c
index 3466b20..974185d 100644
--- a/src/zlib-ng/test/infcover.c
+++ b/src/zlib-ng/test/infcover.c
@@ -11,17 +11,11 @@
#undef NDEBUG
#include <assert.h>
#include <inttypes.h>
-#include <stdint.h>
/* get definition of internal structure so we can mess with it (see pull()),
and so we can call inflate_trees() (see cover5()) */
-#define ZLIB_INTERNAL
#include "zbuild.h"
-#ifdef ZLIB_COMPAT
-# include "zlib.h"
-#else
-# include "zlib-ng.h"
-#endif
+#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
@@ -348,7 +342,7 @@ static void inf(char *hex, char *what, unsigned step, int win, unsigned len, int
ret = PREFIX(inflateReset2)(&strm, -8); assert(ret == Z_OK);
ret = PREFIX(inflateEnd)(&strm); assert(ret == Z_OK);
mem_done(&strm, what);
- (void)err;
+ Z_UNUSED(err);
}
/* cover all of the lines in inflate.c up to inflate() */
@@ -386,7 +380,7 @@ static void cover_support(void) {
ret = PREFIX(inflateInit)(&strm); assert(ret == Z_OK);
ret = PREFIX(inflateEnd)(&strm); assert(ret == Z_OK);
fputs("inflate built-in memory routines\n", stderr);
- (void)ret;
+ Z_UNUSED(ret);
}
/* cover all inflate() header and trailer cases and code after inflate() */
@@ -470,7 +464,7 @@ static unsigned pull(void *desc, z_const unsigned char **buf) {
static int push(void *desc, unsigned char *buf, unsigned len) {
buf += len;
- (void)buf;
+ Z_UNUSED(buf);
return desc != NULL; /* force error if desc not null */
}
@@ -511,7 +505,7 @@ static void cover_back(void) {
assert(ret == Z_OK);
ret = PREFIX(inflateBackEnd)(&strm); assert(ret == Z_OK);
fputs("inflateBack built-in memory routines\n", stderr);
- (void)ret;
+ Z_UNUSED(ret);
}
/* do a raw inflate of data in hexadecimal with both inflate and inflateBack */
@@ -647,7 +641,7 @@ static void cover_trees(void) {
ret = zng_inflate_table(DISTS, lens, 16, &next, &bits, work);
assert(ret == 1);
fputs("inflate_table not enough errors\n", stderr);
- (void)ret;
+ Z_UNUSED(ret);
}
/* cover remaining inffast.c decoding and window copying */