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 /inftrees.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 'inftrees.c')
-rw-r--r-- | inftrees.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -29,14 +29,9 @@ const char inflate_copyright[] = | |||
29 | table index bits. It will differ if the request is greater than the | 29 | table index bits. It will differ if the request is greater than the |
30 | longest code or if it is less than the shortest code. | 30 | longest code or if it is less than the shortest code. |
31 | */ | 31 | */ |
32 | int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) | 32 | int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens, |
33 | codetype type; | 33 | unsigned codes, code FAR * FAR *table, |
34 | unsigned short FAR *lens; | 34 | unsigned FAR *bits, unsigned short FAR *work) { |
35 | unsigned codes; | ||
36 | code FAR * FAR *table; | ||
37 | unsigned FAR *bits; | ||
38 | unsigned short FAR *work; | ||
39 | { | ||
40 | unsigned len; /* a code's length in bits */ | 35 | unsigned len; /* a code's length in bits */ |
41 | unsigned sym; /* index of code symbols */ | 36 | unsigned sym; /* index of code symbols */ |
42 | unsigned min, max; /* minimum and maximum code lengths */ | 37 | unsigned min, max; /* minimum and maximum code lengths */ |