summaryrefslogtreecommitdiff
path: root/zutil.c
diff options
context:
space:
mode:
authorhansr <hk-git@circlestorm.org>2014-10-18 22:49:16 +0200
committerhansr <hk-git@circlestorm.org>2014-10-18 22:49:16 +0200
commit84002037ee33b2fcf8bd3c69b3a7e3630a04f914 (patch)
tree88ffbcc6ee04d7fca18103dcac8fd3898e2083fe /zutil.c
parent8999d0a963bd0e5080b6ed56bd073d2f5544e982 (diff)
Rewrite K&R-style function prototypes to ANSI-C-style.
Only internal functions, no exported functions in this commit.
Diffstat (limited to 'zutil.c')
-rw-r--r--zutil.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/zutil.c b/zutil.c
index ec2050b..afad980 100644
--- a/zutil.c
+++ b/zutil.c
@@ -120,19 +120,14 @@ const char * ZEXPORT zError(err)
#ifndef MY_ZCALLOC /* Any system without a special alloc function */
-voidp ZLIB_INTERNAL zcalloc (opaque, items, size)
- voidp opaque;
- unsigned items;
- unsigned size;
+voidp ZLIB_INTERNAL zcalloc (voidp opaque, unsigned items, unsigned size)
{
if (opaque) items += size - size; /* make compiler happy */
return sizeof(uInt) > 2 ? (voidp)malloc(items * size) :
(voidp)calloc(items, size);
}
-void ZLIB_INTERNAL zcfree (opaque, ptr)
- voidp opaque;
- voidp ptr;
+void ZLIB_INTERNAL zcfree (voidp opaque, voidp ptr)
{
free(ptr);
if (opaque) return; /* make compiler happy */