aboutsummaryrefslogtreecommitdiff
path: root/zlib/test/example.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-11-25 15:09:09 -0800
committerJoel Brobecker <brobecker@adacore.com>2015-11-25 15:14:47 -0800
commitda09a436519e8085d328a586c438b5b0a560924d (patch)
tree00c45547fe27ee944ef36f7260a241e9d287a17b /zlib/test/example.c
parent74b03b91333ccbc8fa70647eca22062e902f797f (diff)
downloadbinutils-da09a436519e8085d328a586c438b5b0a560924d.zip
binutils-da09a436519e8085d328a586c438b5b0a560924d.tar.gz
binutils-da09a436519e8085d328a586c438b5b0a560924d.tar.bz2
Import zlib 1.2.8 with local change merged in.
ChangeLog: * zlib: Update to zlib 1.2.8 with local changes merged in.
Diffstat (limited to 'zlib/test/example.c')
-rw-r--r--zlib/test/example.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zlib/test/example.c b/zlib/test/example.c
index f515a48..138a699 100644
--- a/zlib/test/example.c
+++ b/zlib/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);