diff options
author | Steven Cole <elenstev@mesatop.com> | 2003-05-30 21:04:12 -0700 |
---|---|---|
committer | David S. Miller <davem@nuts.ninka.net> | 2003-05-30 21:04:12 -0700 |
commit | 9910824e183e37e704f7ea6c2524955927e0627f (patch) | |
tree | 0832c486049939a9c08878a40c2ac8db4cf1ced9 /lib | |
parent | 022c22eff09201cbe3528375856e074c429f061c (diff) | |
download | history-9910824e183e37e704f7ea6c2524955927e0627f.tar.gz |
[PATCH] More ANSI C cleanup of zlib
More zlib K&R to ANSI C function header conversions.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zlib_deflate/deflate.c | 51 |
1 files changed, 29 insertions, 22 deletions
diff --git a/lib/zlib_deflate/deflate.c b/lib/zlib_deflate/deflate.c index 49c364080db27c..476cb6481780c1 100644 --- a/lib/zlib_deflate/deflate.c +++ b/lib/zlib_deflate/deflate.c @@ -255,10 +255,11 @@ int zlib_deflateInit2_( } /* ========================================================================= */ -int zlib_deflateSetDictionary (strm, dictionary, dictLength) - z_streamp strm; - const Bytef *dictionary; - uInt dictLength; +int zlib_deflateSetDictionary( + z_streamp strm, + const Bytef *dictionary, + uInt dictLength +) { deflate_state *s; uInt length = dictLength; @@ -298,8 +299,9 @@ int zlib_deflateSetDictionary (strm, dictionary, dictLength) } /* ========================================================================= */ -int zlib_deflateReset (strm) - z_streamp strm; +int zlib_deflateReset( + z_streamp strm +) { deflate_state *s; @@ -328,10 +330,11 @@ int zlib_deflateReset (strm) } /* ========================================================================= */ -int zlib_deflateParams(strm, level, strategy) - z_streamp strm; - int level; - int strategy; +int zlib_deflateParams( + z_streamp strm, + int level, + int strategy +) { deflate_state *s; compress_func func; @@ -405,9 +408,10 @@ local void flush_pending(strm) } /* ========================================================================= */ -int zlib_deflate (strm, flush) - z_streamp strm; - int flush; +int zlib_deflate( + z_streamp strm, + int flush +) { int old_flush; /* value of flush param for previous deflate call */ deflate_state *s; @@ -542,8 +546,9 @@ int zlib_deflate (strm, flush) } /* ========================================================================= */ -int zlib_deflateEnd (strm) - z_streamp strm; +int zlib_deflateEnd( + z_streamp strm +) { int status; deflate_state *s; @@ -565,9 +570,10 @@ int zlib_deflateEnd (strm) /* ========================================================================= * Copy the source state to the destination state. */ -int zlib_deflateCopy (dest, source) - z_streamp dest; - z_streamp source; +int zlib_deflateCopy ( + z_streamp dest, + z_streamp source +) { #ifdef MAXSEG_64K return Z_STREAM_ERROR; @@ -624,10 +630,11 @@ int zlib_deflateCopy (dest, source) * allocating a large strm->next_in buffer and copying from it. * (See also flush_pending()). */ -local int read_buf(strm, buf, size) - z_streamp strm; - Bytef *buf; - unsigned size; +local int read_buf( + z_streamp strm, + Bytef *buf, + unsigned size +) { unsigned len = strm->avail_in; |