aboutsummaryrefslogtreecommitdiff
path: root/inffast.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 /inffast.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 'inffast.c')
-rw-r--r--inffast.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/inffast.c b/inffast.c
index 1fec7f3..9354676 100644
--- a/inffast.c
+++ b/inffast.c
@@ -47,10 +47,7 @@
47 requires strm->avail_out >= 258 for each loop to avoid checking for 47 requires strm->avail_out >= 258 for each loop to avoid checking for
48 output space. 48 output space.
49 */ 49 */
50void ZLIB_INTERNAL inflate_fast(strm, start) 50void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
51z_streamp strm;
52unsigned start; /* inflate()'s starting value for strm->avail_out */
53{
54 struct inflate_state FAR *state; 51 struct inflate_state FAR *state;
55 z_const unsigned char FAR *in; /* local strm->next_in */ 52 z_const unsigned char FAR *in; /* local strm->next_in */
56 z_const unsigned char FAR *last; /* have enough input while in < last */ 53 z_const unsigned char FAR *last; /* have enough input while in < last */