summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-12-03 08:18:56 -0800
committerHans Kristian Rosbach <hk-git@circlestorm.org>2017-02-06 13:06:25 +0100
commit867e98156585407acd4b5fd78ce6f0b174bced8e (patch)
tree7a9d928a43502c06293300267ef4cbe068971e07 /gzlib.c
parent40039a039c26da37cdc972aa650a9ea40e310f20 (diff)
Clean up gz* function return values.
In some cases the return values did not match the documentation, or the documentation did not document all of the return values. gzprintf() now consistently returns negative values on error, which matches the behavior of the stdio fprintf() function.
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gzlib.c b/gzlib.c
index c0f05d5..f152c1c 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -496,7 +496,6 @@ void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg) {
return;
}
snprintf(state->msg, strlen(state->path) + strlen(msg) + 3, "%s%s%s", state->path, ": ", msg);
- return;
}
#ifndef INT_MAX