diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 01:18:06 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-04-15 21:18:52 -0700 |
commit | c4aa356742e03af6670c043905cd2c96f515ad72 (patch) | |
tree | 00d7887ae3af633455b3402226896d2e0db73911 /contrib/infback9/infback9.c | |
parent | e9d5486e6635141f589e110fd789648aa08e9544 (diff) | |
download | zlib-c4aa356742e03af6670c043905cd2c96f515ad72.tar.gz zlib-c4aa356742e03af6670c043905cd2c96f515ad72.tar.bz2 zlib-c4aa356742e03af6670c043905cd2c96f515ad72.zip |
Remove K&R function definitions from infback9.
Diffstat (limited to 'contrib/infback9/infback9.c')
-rw-r--r-- | contrib/infback9/infback9.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/contrib/infback9/infback9.c b/contrib/infback9/infback9.c index 05fb3e3..742a392 100644 --- a/contrib/infback9/infback9.c +++ b/contrib/infback9/infback9.c | |||
@@ -16,12 +16,8 @@ | |||
16 | 16 | ||
17 | window is a user-supplied window and output buffer that is 64K bytes. | 17 | window is a user-supplied window and output buffer that is 64K bytes. |
18 | */ | 18 | */ |
19 | int ZEXPORT inflateBack9Init_(strm, window, version, stream_size) | 19 | int ZEXPORT inflateBack9Init_(z_stream FAR *strm, unsigned char FAR *window, |
20 | z_stream FAR *strm; | 20 | const char *version, int stream_size) { |
21 | unsigned char FAR *window; | ||
22 | const char *version; | ||
23 | int stream_size; | ||
24 | { | ||
25 | struct inflate_state FAR *state; | 21 | struct inflate_state FAR *state; |
26 | 22 | ||
27 | if (version == Z_NULL || version[0] != ZLIB_VERSION[0] || | 23 | if (version == Z_NULL || version[0] != ZLIB_VERSION[0] || |
@@ -51,8 +47,7 @@ int stream_size; | |||
51 | #ifdef MAKEFIXED | 47 | #ifdef MAKEFIXED |
52 | #include <stdio.h> | 48 | #include <stdio.h> |
53 | 49 | ||
54 | void makefixed9(void) | 50 | void makefixed9(void) { |
55 | { | ||
56 | unsigned sym, bits, low, size; | 51 | unsigned sym, bits, low, size; |
57 | code *next, *lenfix, *distfix; | 52 | code *next, *lenfix, *distfix; |
58 | struct inflate_state state; | 53 | struct inflate_state state; |
@@ -214,13 +209,8 @@ void makefixed9(void) | |||
214 | inflateBack() can also return Z_STREAM_ERROR if the input parameters | 209 | inflateBack() can also return Z_STREAM_ERROR if the input parameters |
215 | are not correct, i.e. strm is Z_NULL or the state was not initialized. | 210 | are not correct, i.e. strm is Z_NULL or the state was not initialized. |
216 | */ | 211 | */ |
217 | int ZEXPORT inflateBack9(strm, in, in_desc, out, out_desc) | 212 | int ZEXPORT inflateBack9(z_stream FAR *strm, in_func in, void FAR *in_desc, |
218 | z_stream FAR *strm; | 213 | out_func out, void FAR *out_desc) { |
219 | in_func in; | ||
220 | void FAR *in_desc; | ||
221 | out_func out; | ||
222 | void FAR *out_desc; | ||
223 | { | ||
224 | struct inflate_state FAR *state; | 214 | struct inflate_state FAR *state; |
225 | z_const unsigned char FAR *next; /* next input */ | 215 | z_const unsigned char FAR *next; /* next input */ |
226 | unsigned char FAR *put; /* next output */ | 216 | unsigned char FAR *put; /* next output */ |
@@ -603,9 +593,7 @@ void FAR *out_desc; | |||
603 | return ret; | 593 | return ret; |
604 | } | 594 | } |
605 | 595 | ||
606 | int ZEXPORT inflateBack9End(strm) | 596 | int ZEXPORT inflateBack9End(z_stream FAR *strm) { |
607 | z_stream FAR *strm; | ||
608 | { | ||
609 | if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) | 597 | if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) |
610 | return Z_STREAM_ERROR; | 598 | return Z_STREAM_ERROR; |
611 | ZFREE(strm, strm->state); | 599 | ZFREE(strm, strm->state); |