diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 22:52:17 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 22:52:17 -0700 |
| commit | 913afb9174bb474104049906c1382dec81826424 (patch) | |
| tree | 46bb8ca746088f81382b4f33970b9d43c33d9ba3 /example.c | |
| parent | bcf78a20978d76f64b7cd46d1a4d7a79a578c77b (diff) | |
| download | zlib-913afb9174bb474104049906c1382dec81826424.tar.gz zlib-913afb9174bb474104049906c1382dec81826424.tar.bz2 zlib-913afb9174bb474104049906c1382dec81826424.zip | |
zlib 0.79v0.79
Diffstat (limited to '')
| -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"); |
