diff options
author | hansr <hk-git@circlestorm.org> | 2014-10-18 22:49:16 +0200 |
---|---|---|
committer | hansr <hk-git@circlestorm.org> | 2014-10-18 22:49:16 +0200 |
commit | 84002037ee33b2fcf8bd3c69b3a7e3630a04f914 (patch) | |
tree | 88ffbcc6ee04d7fca18103dcac8fd3898e2083fe /zutil.c | |
parent | 8999d0a963bd0e5080b6ed56bd073d2f5544e982 (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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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 */ |