summaryrefslogtreecommitdiff
path: root/libs/zlib/src/gzclose.c
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-05-13 01:47:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-13 18:42:00 +0300
commitcd6513f3037456f6c7c3a8d051be51d62cb9bd88 (patch)
tree4bf5262c2804d54c5bcc7de16df1023d7eeb2de7 /libs/zlib/src/gzclose.c
parent548f1be92197f393ceb3d2d0cb42d911d40e03a6 (diff)
zlib: updated to version 1.2.11
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 538d230774..caeb99a317 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
}