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.
This commit is contained in:
Mark Adler
2016-12-03 08:18:56 -08:00
parent 9dc5a8585f
commit 123f9cfaf7
3 changed files with 37 additions and 34 deletions

View File

@@ -615,7 +615,6 @@ void ZLIB_INTERNAL gz_error(state, err, msg)
strcat(state->msg, ": ");
strcat(state->msg, msg);
#endif
return;
}
#ifndef INT_MAX