diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-14 01:42:03 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 21:17:31 -0700 |
commit | e9d5486e6635141f589e110fd789648aa08e9544 (patch) | |
tree | a78b9ccd92b05af7cd5776b688d9c3eb3a81a40a /uncompr.c | |
parent | 5799c14c8526bf1aaa130c021982f831d155b46d (diff) | |
download | zlib-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 'uncompr.c')
-rw-r--r-- | uncompr.c | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -24,12 +24,8 @@ | |||
24 | Z_DATA_ERROR if the input data was corrupted, including if the input data is | 24 | Z_DATA_ERROR if the input data was corrupted, including if the input data is |
25 | an incomplete zlib stream. | 25 | an incomplete zlib stream. |
26 | */ | 26 | */ |
27 | int ZEXPORT uncompress2(dest, destLen, source, sourceLen) | 27 | int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, |
28 | Bytef *dest; | 28 | uLong *sourceLen) { |
29 | uLongf *destLen; | ||
30 | const Bytef *source; | ||
31 | uLong *sourceLen; | ||
32 | { | ||
33 | z_stream stream; | 29 | z_stream stream; |
34 | int err; | 30 | int err; |
35 | const uInt max = (uInt)-1; | 31 | const uInt max = (uInt)-1; |
@@ -83,11 +79,7 @@ int ZEXPORT uncompress2(dest, destLen, source, sourceLen) | |||
83 | err; | 79 | err; |
84 | } | 80 | } |
85 | 81 | ||
86 | int ZEXPORT uncompress(dest, destLen, source, sourceLen) | 82 | int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, |
87 | Bytef *dest; | 83 | uLong sourceLen) { |
88 | uLongf *destLen; | ||
89 | const Bytef *source; | ||
90 | uLong sourceLen; | ||
91 | { | ||
92 | return uncompress2(dest, destLen, source, &sourceLen); | 84 | return uncompress2(dest, destLen, source, &sourceLen); |
93 | } | 85 | } |