summaryrefslogtreecommitdiff
path: root/libs/zlib/src/gzclose.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-16 14:09:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-16 14:09:56 +0000
commit0e9b3d2bca89aaf1a365b6dbecff60c1b41aa28d (patch)
tree5f3347f6cb09ad0b9fd46881013de682f60bc98d /libs/zlib/src/gzclose.c
parent44107dd903dd04d00ed3003049f098a24624151f (diff)
minus 3 warnings
git-svn-id: http://svn.miranda-ng.org/main/trunk@14964 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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
}