summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/zlib/gzlib.c
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2017-01-25 17:15:54 +0100
committer hap <happppp@users.noreply.github.com>2017-01-25 17:15:54 +0100
commit93c92be81517a982ef9b47eed610a3e42ed244bc (patch)
tree60ad45f195db92267e54cf44f61d6f932803301f /3rdparty/zlib/gzlib.c
parentc11c22b3e83bdf7ac8d48f0a8e3be48ba31786f8 (diff)
updated to zlib 1.2.11 (nw)
Diffstat (limited to '3rdparty/zlib/gzlib.c')
-rw-r--r--3rdparty/zlib/gzlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/zlib/gzlib.c b/3rdparty/zlib/gzlib.c
index a87d3d19ecd..4105e6aff92 100644
--- a/3rdparty/zlib/gzlib.c
+++ b/3rdparty/zlib/gzlib.c
@@ -1,5 +1,5 @@
/* gzlib.c -- zlib functions common to reading and writing gzip files
- * Copyright (C) 2004, 2010, 2011, 2012, 2013, 2016 Mark Adler
+ * Copyright (C) 2004-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -211,7 +211,7 @@ local gzFile gz_open(path, fd, mode)
else
#endif
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
- snprintf(state->path, len + 1, "%s", (const char *)path);
+ (void)snprintf(state->path, len + 1, "%s", (const char *)path);
#else
strcpy(state->path, path);
#endif
@@ -293,7 +293,7 @@ gzFile ZEXPORT gzdopen(fd, mode)
if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL)
return NULL;
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
- snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd); /* for debugging */
+ (void)snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd);
#else
sprintf(path, "<fd:%d>", fd); /* for debugging */
#endif
@@ -608,8 +608,8 @@ void ZLIB_INTERNAL gz_error(state, err, msg)
return;
}
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
- snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
- "%s%s%s", state->path, ": ", msg);
+ (void)snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
+ "%s%s%s", state->path, ": ", msg);
#else
strcpy(state->msg, state->path);
strcat(state->msg, ": ");