diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-06-26 10:02:38 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-06-26 10:03:03 +0900 |
commit | eb378cd74f8cfa0bdcc268b448bb8b737ab6bb76 (patch) | |
tree | c388f5f09a2b03a0b1f0eca9cb320e32651d0122 /test/example.c | |
parent | b7d5cfafc420878bb840905f43dc71a5cdb8b747 (diff) | |
download | zlib-eb378cd74f8cfa0bdcc268b448bb8b737ab6bb76.tar.gz zlib-eb378cd74f8cfa0bdcc268b448bb8b737ab6bb76.tar.bz2 zlib-eb378cd74f8cfa0bdcc268b448bb8b737ab6bb76.zip |
Imported Upstream version 1.2.8
Change-Id: Ibc25e5244b1334f94fcfe8edf50993e1d7b519e9
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'test/example.c')
-rw-r--r-- | test/example.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/example.c b/test/example.c index f515a48..138a699 100644 --- a/test/example.c +++ b/test/example.c @@ -26,7 +26,7 @@ } \ } -const char hello[] = "hello, hello!"; +z_const char hello[] = "hello, hello!"; /* "hello world" would be more standard, but the repeated "hello" * stresses the compression code better, sorry... */ @@ -212,7 +212,7 @@ void test_deflate(compr, comprLen) err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); CHECK_ERR(err, "deflateInit"); - c_stream.next_in = (Bytef*)hello; + c_stream.next_in = (z_const unsigned char *)hello; c_stream.next_out = compr; while (c_stream.total_in != len && c_stream.total_out < comprLen) { @@ -387,7 +387,7 @@ void test_flush(compr, comprLen) err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); CHECK_ERR(err, "deflateInit"); - c_stream.next_in = (Bytef*)hello; + c_stream.next_in = (z_const unsigned char *)hello; c_stream.next_out = compr; c_stream.avail_in = 3; c_stream.avail_out = (uInt)*comprLen; @@ -476,7 +476,7 @@ void test_dict_deflate(compr, comprLen) c_stream.next_out = compr; c_stream.avail_out = (uInt)comprLen; - c_stream.next_in = (Bytef*)hello; + c_stream.next_in = (z_const unsigned char *)hello; c_stream.avail_in = (uInt)strlen(hello)+1; err = deflate(&c_stream, Z_FINISH); |