summaryrefslogtreecommitdiffstats
path: root/cpukit/zlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-18 20:49:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-18 20:49:37 +0000
commit738ea752500cc80a37011d080abce756d843095b (patch)
tree1f21c61ab356d67951ffec666e9f05910f670c14 /cpukit/zlib
parent2008-12-18 Michael Hamel <nigel@adi.co.nz> (diff)
downloadrtems-738ea752500cc80a37011d080abce756d843095b.tar.bz2
2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* zutil.c, zutil.h: Make code match prototype to eliminate warnings.
Diffstat (limited to 'cpukit/zlib')
-rw-r--r--cpukit/zlib/ChangeLog4
-rw-r--r--cpukit/zlib/zutil.c9
-rw-r--r--cpukit/zlib/zutil.h2
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 <joel.sherrill@oarcorp.com>
+
+ * zutil.c, zutil.h: Make code match prototype to eliminate warnings.
+
2008-09-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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) \