diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-01 19:10:32 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-01-01 19:10:32 (GMT) |
commit | d2cdeda593457c08bfa561d317374933f9fcf925 (patch) | |
tree | 77c302923d88e96f0b6fbb399719fc25530be29c /compat/zlib/test/minigzip.c | |
parent | a04ce08575e6013ffee3376c7d045a6709dee314 (diff) | |
download | tcl-d2cdeda593457c08bfa561d317374933f9fcf925.zip tcl-d2cdeda593457c08bfa561d317374933f9fcf925.tar.gz tcl-d2cdeda593457c08bfa561d317374933f9fcf925.tar.bz2 |
Update zlib to version 1.2.9. Dll's and *.lib files not updated yet
Diffstat (limited to 'compat/zlib/test/minigzip.c')
-rw-r--r-- | compat/zlib/test/minigzip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compat/zlib/test/minigzip.c b/compat/zlib/test/minigzip.c index b3025a4..e22fb08 100644 --- a/compat/zlib/test/minigzip.c +++ b/compat/zlib/test/minigzip.c @@ -1,5 +1,5 @@ /* minigzip.c -- simulate gzip using the zlib compression library - * Copyright (C) 1995-2006, 2010, 2011 Jean-loup Gailly. + * Copyright (C) 1995-2006, 2010, 2011, 2016 Jean-loup Gailly * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -40,7 +40,7 @@ # define SET_BINARY_MODE(file) #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && _MSC_VER < 1900 # define snprintf _snprintf #endif @@ -156,14 +156,14 @@ void *myalloc(q, n, m) void *q; unsigned n, m; { - q = Z_NULL; + (void)q; return calloc(n, m); } void myfree(q, p) void *q, *p; { - q = Z_NULL; + (void)q; free(p); } @@ -333,7 +333,7 @@ const char *gzerror(gz, err) #endif -char *prog; +static char *prog; void error OF((const char *msg)); void gz_compress OF((FILE *in, gzFile out)); @@ -500,7 +500,7 @@ void file_uncompress(file) char *infile, *outfile; FILE *out; gzFile in; - size_t len = strlen(file); + unsigned len = strlen(file); if (len + strlen(GZ_SUFFIX) >= sizeof(buf)) { fprintf(stderr, "%s: filename too long\n", prog); |