Commit 64a30cd5 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: K&R to ANSI style conversions from Steven Cole

parent 1acaa921
...@@ -1545,10 +1545,11 @@ local inflate_huft *fixed_tl; ...@@ -1545,10 +1545,11 @@ local inflate_huft *fixed_tl;
local inflate_huft *fixed_td; local inflate_huft *fixed_td;
local voidpf falloc(q, n, s) local voidpf falloc(
voidpf q; /* opaque pointer (not used) */ voidpf q, /* opaque pointer (not used) */
uInt n; /* number of items */ uInt n, /* number of items */
uInt s; /* size of item */ uInt s /* size of item */
)
{ {
Assert(s == sizeof(inflate_huft) && n <= fixed_left, Assert(s == sizeof(inflate_huft) && n <= fixed_left,
"inflate_trees falloc overflow"); "inflate_trees falloc overflow");
...@@ -1558,10 +1559,11 @@ uInt s; /* size of item */ ...@@ -1558,10 +1559,11 @@ uInt s; /* size of item */
} }
local void ffree(q, p, n) local void ffree(
voidpf q; voidpf q,
voidpf p; voidpf p,
uInt n; uInt n
)
{ {
Assert(0, "inflate_trees ffree called!"); Assert(0, "inflate_trees ffree called!");
if (q) q = p; /* to make some compilers happy */ if (q) q = p; /* to make some compilers happy */
...@@ -2164,10 +2166,11 @@ char *z_errmsg[] = { ...@@ -2164,10 +2166,11 @@ char *z_errmsg[] = {
#define DO16(buf) DO8(buf); DO8(buf); #define DO16(buf) DO8(buf); DO8(buf);
/* ========================================================================= */ /* ========================================================================= */
uLong adler32(adler, buf, len) uLong adler32(
uLong adler; uLong adler,
Bytef *buf; Bytef *buf,
uInt len; uInt len
)
{ {
unsigned long s1 = adler & 0xffff; unsigned long s1 = adler & 0xffff;
unsigned long s2 = (adler >> 16) & 0xffff; unsigned long s2 = (adler >> 16) & 0xffff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment