diff options
Diffstat (limited to 'minigzip.c')
-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 | ||