summaryrefslogtreecommitdiff
path: root/libs/zlib/src/gzclose.c
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-14 20:34:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-14 20:34:59 +0300
commitfdeeb9226bef15ce8cb188b9ceeb3f2a6f063b6c (patch)
tree9983e7ebef34abc90e8e333bd32c3c53528a7864 /libs/zlib/src/gzclose.c
parentcec4228b656b44a8cdde869c3031e6e62480688d (diff)
Revert "zlib: updated to version 1.2.11"
This reverts commit cd6513f3037456f6c7c3a8d051be51d62cb9bd88.
Diffstat (limited to 'libs/zlib/src/gzclose.c')
-rw-r--r--libs/zlib/src/gzclose.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libs/zlib/src/gzclose.c b/libs/zlib/src/gzclose.c
index caeb99a317..538d230774 100644
--- a/libs/zlib/src/gzclose.c
+++ b/libs/zlib/src/gzclose.c
@@ -5,21 +5,21 @@
#include "gzguts.h"
-/* gzclose() is in a separate file so that it is linked in only if it is used.
- That way the other gzclose functions can be used instead to avoid linking in
- unneeded compression or decompression routines. */
+ /* gzclose() is in a separate file so that it is linked in only if it is used.
+ That way the other gzclose functions can be used instead to avoid linking in
+ unneeded compression or decompression routines. */
int ZEXPORT gzclose(file)
- gzFile file;
+gzFile file;
{
-#ifndef NO_GZCOMPRESS
- gz_statep state;
+ #ifndef NO_GZCOMPRESS
+ gz_statep state;
- if (file == NULL)
- return Z_STREAM_ERROR;
- state = (gz_statep)file;
+ if (file == NULL)
+ return Z_STREAM_ERROR;
+ state = (gz_statep)file;
- return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
-#else
- return gzclose_r(file);
-#endif
+ return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
+ #else
+ return gzclose_r(file);
+ #endif
}