aboutsummaryrefslogtreecommitdiff
path: root/uncompr.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 /uncompr.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 'uncompr.c')
-rw-r--r--uncompr.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/uncompr.c b/uncompr.c
index f9532f4..5e25666 100644
--- a/uncompr.c
+++ b/uncompr.c
@@ -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*/
27int ZEXPORT uncompress2(dest, destLen, source, sourceLen) 27int 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
86int ZEXPORT uncompress(dest, destLen, source, sourceLen) 82int 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}