From 738ea752500cc80a37011d080abce756d843095b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 18 Dec 2008 20:49:37 +0000 Subject: [PATCH] 2008-12-18 Joel Sherrill * zutil.c, zutil.h: Make code match prototype to eliminate warnings. --- cpukit/zlib/ChangeLog | 4 ++++ cpukit/zlib/zutil.c | 9 +++------ cpukit/zlib/zutil.h | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cpukit/zlib/ChangeLog b/cpukit/zlib/ChangeLog index 09817644ce..abc54a363f 100644 --- a/cpukit/zlib/ChangeLog +++ b/cpukit/zlib/ChangeLog @@ -1,3 +1,7 @@ +2008-12-18 Joel Sherrill + + * zutil.c, zutil.h: Make code match prototype to eliminate warnings. + 2008-09-02 Ralf Corsépius * adler32.c, compress.c, crc32.c, deflate.c, gzio.c, infback.c, diff --git a/cpukit/zlib/zutil.c b/cpukit/zlib/zutil.c index 7d38a3416b..192cc35fcd 100644 --- a/cpukit/zlib/zutil.c +++ b/cpukit/zlib/zutil.c @@ -213,7 +213,7 @@ local ptr_table table[MAX_PTR]; * a protected system like OS/2. Use Microsoft C instead. */ -voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) +voidpf zcalloc (voidpf opaque, uInt items, uInt size) { voidpf buf = opaque; /* just to make some compilers happy */ ulg bsize = (ulg)items*size; @@ -272,7 +272,7 @@ void zcfree (voidpf opaque, voidpf ptr) # define _hfree hfree #endif -voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) +voidpf zcalloc (voidpf opaque, uInt items, uInt size) { if (opaque) opaque = 0; /* to make compiler happy */ return _halloc((long)items, size); @@ -297,10 +297,7 @@ extern voidp calloc OF((uInt items, uInt size)); extern void free OF((voidpf ptr)); #endif -voidpf zcalloc ( - voidpf opaque, - unsigned items, - unsigned size) +voidpf zcalloc (voidpf opaque, uInt items, uInt size) { if (opaque) items += size - size; /* make compiler happy */ return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : diff --git a/cpukit/zlib/zutil.h b/cpukit/zlib/zutil.h index b7d5eff81b..4cf95f80cf 100644 --- a/cpukit/zlib/zutil.h +++ b/cpukit/zlib/zutil.h @@ -258,7 +258,7 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ #endif -voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size)); +voidpf zcalloc OF((voidpf opaque, uInt items, uInt size)); void zcfree OF((voidpf opaque, voidpf ptr)); #define ZALLOC(strm, items, size) \