Skip to content

Commit b762450

Browse files
rddunlapLinus Torvalds
authored andcommitted
[PATCH] zlib inflate: fix function definitions
Fix function definitions to be ANSI-compliant: lib/zlib_inflate/inffast.c:68:1: warning: non-ANSI definition of function 'inflate_fast' lib/zlib_inflate/inftrees.c:33:1: warning: non-ANSI definition of function 'zlib_inflate_table' Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7f32a25 commit b762450

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

‎lib/zlib_inflate/inffast.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
bytes, which is the maximum length that can be coded. inflate_fast()
6464
requires strm->avail_out >= 258 for each loop to avoid checking for
6565
output space.
66+
67+
- @start: inflate()'s starting value for strm->avail_out
6668
*/
67-
void inflate_fast(strm, start)
68-
z_streamp strm;
69-
unsigned start; /* inflate()'s starting value for strm->avail_out */
69+
void inflate_fast(z_streamp strm, unsigned start)
7070
{
7171
struct inflate_state *state;
7272
unsigned char *in; /* local strm->next_in */

‎lib/zlib_inflate/inftrees.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@
2020
table index bits. It will differ if the request is greater than the
2121
longest code or if it is less than the shortest code.
2222
*/
23-
int zlib_inflate_table(type, lens, codes, table, bits, work)
24-
codetype type;
25-
unsigned short *lens;
26-
unsigned codes;
27-
code **table;
28-
unsigned *bits;
29-
unsigned short *work;
23+
int zlib_inflate_table(codetype type, unsigned short *lens, unsigned codes,
24+
code **table, unsigned *bits, unsigned short *work)
3025
{
3126
unsigned len; /* a code's length in bits */
3227
unsigned sym; /* index of code symbols */

0 commit comments

Comments
 (0)