summaryrefslogtreecommitdiffstats
path: root/cpukit/zlib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-02 08:59:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-02 08:59:48 +0000
commit5d65704387f3b337095df5d3a0b63093d89304b2 (patch)
tree3c6eb8f9dfd96c5e554a535c9ce39947759817c6 /cpukit/zlib
parentStop using old-style function definitions. (diff)
downloadrtems-5d65704387f3b337095df5d3a0b63093d89304b2.tar.bz2
Stop using old-style function definitions.
Diffstat (limited to 'cpukit/zlib')
-rw-r--r--cpukit/zlib/zutil.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/cpukit/zlib/zutil.c b/cpukit/zlib/zutil.c
index 0790c68a41..7d38a3416b 100644
--- a/cpukit/zlib/zutil.c
+++ b/cpukit/zlib/zutil.c
@@ -146,10 +146,10 @@ const char * ZEXPORT zError(
#ifndef HAVE_MEMCPY
-void zmemcpy(dest, source, len)
- Bytef* dest;
- const Bytef* source;
- uInt len;
+void zmemcpy(
+ Bytef* dest,
+ const Bytef* source,
+ uInt len)
{
if (len == 0) return;
do {
@@ -157,10 +157,10 @@ void zmemcpy(dest, source, len)
} while (--len != 0);
}
-int zmemcmp(s1, s2, len)
- const Bytef* s1;
- const Bytef* s2;
- uInt len;
+int zmemcmp(
+ const Bytef* s1,
+ const Bytef* s2,
+ uInt len)
{
uInt j;
@@ -170,9 +170,9 @@ int zmemcmp(s1, s2, len)
return 0;
}
-void zmemzero(dest, len)
- Bytef* dest;
- uInt len;
+void zmemzero(
+ Bytef* dest,
+ uInt len)
{
if (len == 0) return;
do {
@@ -297,19 +297,19 @@ extern voidp calloc OF((uInt items, uInt size));
extern void free OF((voidpf ptr));
#endif
-voidpf zcalloc (opaque, items, size)
- voidpf opaque;
- unsigned items;
- unsigned size;
+voidpf zcalloc (
+ voidpf opaque,
+ unsigned items,
+ unsigned size)
{
if (opaque) items += size - size; /* make compiler happy */
return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
(voidpf)calloc(items, size);
}
-void zcfree (opaque, ptr)
- voidpf opaque;
- voidpf ptr;
+void zcfree (
+ voidpf opaque,
+ voidpf ptr)
{
free(ptr);
if (opaque) return; /* make compiler happy */