diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2019-09-19 09:57:42 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-09-19 21:02:01 +0200 |
commit | b080dd07b679c86d84cf3b4eea7ee3437e8fa0a3 (patch) | |
tree | 43f4b73c2ebe05c236f1311cdbdd40628aa1cc27 /test/example.c | |
parent | 78406af8241471e7ff5e1ce9eb4d94cea596e863 (diff) |
Fixed several warnings in example and fuzzers. #409
Diffstat (limited to 'test/example.c')
-rw-r--r-- | test/example.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/example.c b/test/example.c index bd1665e..4b78f21 100644 --- a/test/example.c +++ b/test/example.c @@ -561,7 +561,7 @@ void test_deflate_bound(unsigned char *compr, size_t comprLen) c_stream.zfree = zfree; c_stream.opaque = (voidpf)0; c_stream.avail_in = len; - c_stream.next_in = hello; + c_stream.next_in = (const unsigned char *)hello; c_stream.avail_out = 0; c_stream.next_out = outBuf; @@ -608,7 +608,7 @@ void test_deflate_copy(unsigned char *compr, size_t comprLen) err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); CHECK_ERR(err, "deflateInit"); - c_stream.next_in = hello; + c_stream.next_in = (const unsigned char *)hello; c_stream.next_out = compr; while (c_stream.total_in != len && c_stream.total_out < comprLen) { @@ -656,7 +656,7 @@ void test_deflate_get_dict(unsigned char *compr, size_t comprLen) c_stream.next_out = compr; c_stream.avail_out = (uInt)comprLen; - c_stream.next_in = hello; + c_stream.next_in = (const unsigned char *)hello; c_stream.avail_in = (unsigned int)strlen(hello)+1; err = PREFIX(deflate)(&c_stream, Z_FINISH); @@ -701,7 +701,7 @@ void test_deflate_pending(unsigned char *compr, size_t comprLen) err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); CHECK_ERR(err, "deflateInit"); - c_stream.next_in = hello; + c_stream.next_in = (const unsigned char *)hello; c_stream.next_out = compr; while (c_stream.total_in != len && c_stream.total_out < comprLen) { @@ -761,7 +761,7 @@ void test_deflate_pending(unsigned char *compr, size_t comprLen) printf("deflatePrime(): OK\n"); } - c_stream.next_in = hello; + c_stream.next_in = (const unsigned char *)hello; c_stream.next_out = compr; while (c_stream.total_in != len && c_stream.total_out < comprLen) { @@ -858,7 +858,7 @@ void test_deflate_tune(unsigned char *compr, size_t comprLen) printf("deflateTune(): OK\n"); } - c_stream.next_in = hello; + c_stream.next_in = (const unsigned char *)hello; c_stream.next_out = compr; while (c_stream.total_in != len && c_stream.total_out < comprLen) { |