summaryrefslogtreecommitdiff
path: root/libs/zlib/src/gzclose.c
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2017-05-15 20:02:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-15 21:00:34 +0300
commit738ea8d4ababc946b4cd4609f962108bfedc1e79 (patch)
tree1d6085ad095f6d03b24269dbb13c322d484405b8 /libs/zlib/src/gzclose.c
parent7175030bf95dceeb023e94436325a7aa8b974962 (diff)
zlib: update to 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
}