aboutsummaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-12-03 08:18:56 -0800
committerMark Adler <madler@alumni.caltech.edu>2016-12-04 07:48:47 -0800
commit123f9cfaf7730dcc52c380eaf04c15dc3e0b15f8 (patch)
treee5f159d765beaba71aa9d0493f7fd4e179fa06fe /gzlib.c
parent9dc5a8585f429109ef1948ab71b6b71bfa7181e2 (diff)
downloadzlib-123f9cfaf7730dcc52c380eaf04c15dc3e0b15f8.tar.gz
zlib-123f9cfaf7730dcc52c380eaf04c15dc3e0b15f8.tar.bz2
zlib-123f9cfaf7730dcc52c380eaf04c15dc3e0b15f8.zip
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 71785cc..a52c55b 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -615,7 +615,6 @@ void ZLIB_INTERNAL gz_error(state, err, msg)
615 strcat(state->msg, ": "); 615 strcat(state->msg, ": ");
616 strcat(state->msg, msg); 616 strcat(state->msg, msg);
617#endif 617#endif
618 return;
619} 618}
620 619
621#ifndef INT_MAX 620#ifndef INT_MAX