Skip to content

Commit

Permalink
[PATCH] zlib inflate: fix function definitions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rddunlap authored and Linus Torvalds committed Jun 28, 2006
1 parent 7f32a25 commit b762450
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/zlib_inflate/inffast.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
bytes, which is the maximum length that can be coded. inflate_fast()
requires strm->avail_out >= 258 for each loop to avoid checking for
output space.
- @start: inflate()'s starting value for strm->avail_out
*/
void inflate_fast(strm, start)
z_streamp strm;
unsigned start; /* inflate()'s starting value for strm->avail_out */
void inflate_fast(z_streamp strm, unsigned start)
{
struct inflate_state *state;
unsigned char *in; /* local strm->next_in */
Expand Down
9 changes: 2 additions & 7 deletions lib/zlib_inflate/inftrees.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@
table index bits. It will differ if the request is greater than the
longest code or if it is less than the shortest code.
*/
int zlib_inflate_table(type, lens, codes, table, bits, work)
codetype type;
unsigned short *lens;
unsigned codes;
code **table;
unsigned *bits;
unsigned short *work;
int zlib_inflate_table(codetype type, unsigned short *lens, unsigned codes,
code **table, unsigned *bits, unsigned short *work)
{
unsigned len; /* a code's length in bits */
unsigned sym; /* index of code symbols */
Expand Down

0 comments on commit b762450

Please sign in to comment.