diff options
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ | |||
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
6 | /* $Id: example.c,v 1.4 1995/04/14 13:32:49 jloup Exp $ */ | 6 | /* $Id: example.c,v 1.5 1995/04/14 20:35:56 jloup Exp $ */ |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include "zlib.h" | 9 | #include "zlib.h" |
@@ -60,7 +60,7 @@ void test_gzio(out, in) | |||
60 | char *in; /* input file */ | 60 | char *in; /* input file */ |
61 | { | 61 | { |
62 | local Byte uncompr[BUFLEN]; | 62 | local Byte uncompr[BUFLEN]; |
63 | uLong uncomprLen = sizeof(uncompr); | 63 | int uncomprLen = sizeof(uncompr); |
64 | int err; | 64 | int err; |
65 | int len = strlen(hello)+1; | 65 | int len = strlen(hello)+1; |
66 | gzFile file; | 66 | gzFile file; |
@@ -114,7 +114,7 @@ uLong test_deflate(compr) | |||
114 | c_stream.next_in = (Byte*)hello; | 114 | c_stream.next_in = (Byte*)hello; |
115 | c_stream.next_out = compr; | 115 | c_stream.next_out = compr; |
116 | 116 | ||
117 | while (c_stream.total_in != len) { | 117 | while (c_stream.total_in != (uLong)len) { |
118 | c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ | 118 | c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ |
119 | err = deflate(&c_stream, Z_NO_FLUSH); | 119 | err = deflate(&c_stream, Z_NO_FLUSH); |
120 | CHECK_ERR(err, "deflate"); | 120 | CHECK_ERR(err, "deflate"); |