Skip to content

Commit

Permalink
Fix -Wdeprecated-non-prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Sep 8, 2023
1 parent 763f34d commit e44c804
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/tests/fileio/crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ local void write_table(out, table)


/* ========================================================================= */
unsigned long ZEXPORT crc32(crc, buf, len)
unsigned long crc;
const unsigned char FAR *buf;
unsigned len;
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf,
unsigned len)
{
if (buf == Z_NULL) return 0UL;

Expand Down Expand Up @@ -234,10 +232,8 @@ unsigned long ZEXPORT crc32(crc, buf, len)
#define DOLIT32 DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4

/* ========================================================================= */
local unsigned long crc32_little(crc, buf, len)
unsigned long crc;
const unsigned char FAR *buf;
unsigned len;
local unsigned long crc32_little(unsigned long crc, const unsigned char FAR *buf,
unsigned len)
{
register u4 c;
register const u4 FAR *buf4;
Expand Down Expand Up @@ -274,10 +270,8 @@ local unsigned long crc32_little(crc, buf, len)
#define DOBIG32 DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4

/* ========================================================================= */
local unsigned long crc32_big(crc, buf, len)
unsigned long crc;
const unsigned char FAR *buf;
unsigned len;
local unsigned long crc32_big(unsigned long crc, const unsigned char FAR *buf,
unsigned len)
{
register u4 c;
register const u4 FAR *buf4;
Expand Down

0 comments on commit e44c804

Please sign in to comment.