2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>

* zutil.c, zutil.h: Make code match prototype to eliminate warnings.
This commit is contained in:
Joel Sherrill
2008-12-18 20:49:37 +00:00
parent ec11156e23
commit 738ea75250
3 changed files with 8 additions and 7 deletions

View File

@@ -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,

View File

@@ -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) :

View File

@@ -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) \