diff options
Diffstat (limited to 'libs/zlib/src/gzclose.c')
-rw-r--r-- | libs/zlib/src/gzclose.c | 26 |
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 } |