From e9d5486e6635141f589e110fd789648aa08e9544 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 14 Apr 2023 01:42:03 -0700 Subject: 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. --- uncompr.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'uncompr.c') diff --git a/uncompr.c b/uncompr.c index f9532f4..5e25666 100644 --- a/uncompr.c +++ b/uncompr.c @@ -24,12 +24,8 @@ Z_DATA_ERROR if the input data was corrupted, including if the input data is an incomplete zlib stream. */ -int ZEXPORT uncompress2(dest, destLen, source, sourceLen) - Bytef *dest; - uLongf *destLen; - const Bytef *source; - uLong *sourceLen; -{ +int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, + uLong *sourceLen) { z_stream stream; int err; const uInt max = (uInt)-1; @@ -83,11 +79,7 @@ int ZEXPORT uncompress2(dest, destLen, source, sourceLen) err; } -int ZEXPORT uncompress(dest, destLen, source, sourceLen) - Bytef *dest; - uLongf *destLen; - const Bytef *source; - uLong sourceLen; -{ +int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, + uLong sourceLen) { return uncompress2(dest, destLen, source, &sourceLen); } -- cgit v1.2.3-55-g6feb