diff options
| -rw-r--r-- | test/infcover.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/infcover.c b/test/infcover.c index 2be01646..8912c403 100644 --- a/test/infcover.c +++ b/test/infcover.c | |||
| @@ -373,7 +373,7 @@ local void cover_support(void) | |||
| 373 | mem_setup(&strm); | 373 | mem_setup(&strm); |
| 374 | strm.avail_in = 0; | 374 | strm.avail_in = 0; |
| 375 | strm.next_in = Z_NULL; | 375 | strm.next_in = Z_NULL; |
| 376 | ret = inflateInit_(&strm, ZLIB_VERSION - 1, (int)sizeof(z_stream)); | 376 | ret = inflateInit_(&strm, "!", (int)sizeof(z_stream)); |
| 377 | assert(ret == Z_VERSION_ERROR); | 377 | assert(ret == Z_VERSION_ERROR); |
| 378 | mem_done(&strm, "wrong version"); | 378 | mem_done(&strm, "wrong version"); |
| 379 | 379 | ||
| @@ -462,7 +462,8 @@ local unsigned pull(void *desc, unsigned char **buf) | |||
| 462 | 462 | ||
| 463 | local int push(void *desc, unsigned char *buf, unsigned len) | 463 | local int push(void *desc, unsigned char *buf, unsigned len) |
| 464 | { | 464 | { |
| 465 | buf += len; | 465 | (void)buf; |
| 466 | (void)len; | ||
| 466 | return desc != Z_NULL; /* force error if desc not null */ | 467 | return desc != Z_NULL; /* force error if desc not null */ |
| 467 | } | 468 | } |
| 468 | 469 | ||
