aboutsummaryrefslogtreecommitdiff
path: root/gzclose.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-04-14 01:42:03 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-04-15 21:17:31 -0700
commite9d5486e6635141f589e110fd789648aa08e9544 (patch)
treea78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /gzclose.c
parent5799c14c8526bf1aaa130c021982f831d155b46d (diff)
downloadzlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.gz
zlib-e9d5486e6635141f589e110fd789648aa08e9544.tar.bz2
zlib-e9d5486e6635141f589e110fd789648aa08e9544.zip
Remove K&R function definitions from zlib.
C2X has removed K&R definitions from the C function syntax. Though the standard has not yet been approved, some high-profile compilers are now issuing warnings when such definitions are encountered.
Diffstat (limited to 'gzclose.c')
-rw-r--r--gzclose.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gzclose.c b/gzclose.c
index caeb99a..48d6a86 100644
--- a/gzclose.c
+++ b/gzclose.c
@@ -8,9 +8,7 @@
8/* gzclose() is in a separate file so that it is linked in only if it is used. 8/* gzclose() is in a separate file so that it is linked in only if it is used.
9 That way the other gzclose functions can be used instead to avoid linking in 9 That way the other gzclose functions can be used instead to avoid linking in
10 unneeded compression or decompression routines. */ 10 unneeded compression or decompression routines. */
11int ZEXPORT gzclose(file) 11int ZEXPORT gzclose(gzFile file) {
12 gzFile file;
13{
14#ifndef NO_GZCOMPRESS 12#ifndef NO_GZCOMPRESS
15 gz_statep state; 13 gz_statep state;
16 14