aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/zlib/gzclose.c
diff options
context:
space:
mode:
authorTraoX_ <140246452+Trao-X@users.noreply.github.com>2026-03-07 21:56:03 +0200
committerGitHub <noreply@github.com>2026-03-07 13:56:03 -0600
commitbbe396d90d6cf292c18017129e4f9f619c406f32 (patch)
tree56eb75286b24c4ee670fcb6011a9106ca653bb61 /Minecraft.Client/Common/zlib/gzclose.c
parent9cac3e039483c59477bae2edc03a3780afe49bd6 (diff)
Update to zlib 1.3.2 (#852)
Diffstat (limited to 'Minecraft.Client/Common/zlib/gzclose.c')
-rw-r--r--Minecraft.Client/Common/zlib/gzclose.c48
1 files changed, 23 insertions, 25 deletions
diff --git a/Minecraft.Client/Common/zlib/gzclose.c b/Minecraft.Client/Common/zlib/gzclose.c
index caeb99a3..faf4fb55 100644
--- a/Minecraft.Client/Common/zlib/gzclose.c
+++ b/Minecraft.Client/Common/zlib/gzclose.c
@@ -1,25 +1,23 @@
-/* gzclose.c -- zlib gzclose() function
- * Copyright (C) 2004, 2010 Mark Adler
- * For conditions of distribution and use, see copyright notice in zlib.h
- */
-
-#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. */
-int ZEXPORT gzclose(file)
- gzFile file;
-{
-#ifndef NO_GZCOMPRESS
- gz_statep state;
-
- 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
-}
+/* gzclose.c -- zlib gzclose() function
+ * Copyright (C) 2004, 2010 Mark Adler
+ * For conditions of distribution and use, see copyright notice in zlib.h
+ */
+
+#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. */
+int ZEXPORT gzclose(gzFile file) {
+#ifndef NO_GZCOMPRESS
+ gz_statep state;
+
+ 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
+}