diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:10 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:10 -0700 |
commit | 8e34b3a8024c028dd9fd21d70525fc6d215efde5 (patch) | |
tree | 896a32f54abdf42ae3c1bb3c5d5627668b481ce4 /minigzip.c | |
parent | 13a294f044ef0a89b2dcbfbb5d4d4c792673348e (diff) | |
download | zlib-1.2.0.2.tar.gz zlib-1.2.0.2.tar.bz2 zlib-1.2.0.2.zip |
zlib 1.2.0.2v1.2.0.2
Diffstat (limited to '')
-rw-r--r-- | minigzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -113,7 +113,7 @@ void gz_compress(in, out) | |||
113 | if (gz_compress_mmap(in, out) == Z_OK) return; | 113 | if (gz_compress_mmap(in, out) == Z_OK) return; |
114 | #endif | 114 | #endif |
115 | for (;;) { | 115 | for (;;) { |
116 | len = fread(buf, 1, sizeof(buf), in); | 116 | len = (int)fread(buf, 1, sizeof(buf), in); |
117 | if (ferror(in)) { | 117 | if (ferror(in)) { |
118 | perror("fread"); | 118 | perror("fread"); |
119 | exit(1); | 119 | exit(1); |
@@ -230,7 +230,7 @@ void file_uncompress(file) | |||
230 | char *infile, *outfile; | 230 | char *infile, *outfile; |
231 | FILE *out; | 231 | FILE *out; |
232 | gzFile in; | 232 | gzFile in; |
233 | int len = strlen(file); | 233 | int len = (int)strlen(file); |
234 | 234 | ||
235 | strcpy(buf, file); | 235 | strcpy(buf, file); |
236 | 236 | ||