summaryrefslogtreecommitdiff
path: root/gzwrite.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 /gzwrite.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 'gzwrite.c')
-rw-r--r--gzwrite.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gzwrite.c b/gzwrite.c
index c592d1a..9ea702e 100644
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -12,8 +12,7 @@ local int gz_zero (gz_statep, z_off64_t);
/* Initialize state for writing a gzip file. Mark initialization by setting
state->size to non-zero. Return -1 on failure or 0 on success. */
-local int gz_init(state)
- gz_statep state;
+local int gz_init(gz_statep state)
{
int ret;
z_streamp strm = &(state->strm);
@@ -67,9 +66,7 @@ local int gz_init(state)
then the deflate() state is reset to start a new gzip stream. If gz->direct
is true, then simply write to the output file without compressing, and
ignore flush. */
-local int gz_comp(state, flush)
- gz_statep state;
- int flush;
+local int gz_comp(gz_statep state, int flush)
{
int ret, got;
unsigned have;
@@ -130,9 +127,7 @@ local int gz_comp(state, flush)
}
/* Compress len zeros to output. Return -1 on error, 0 on success. */
-local int gz_zero(state, len)
- gz_statep state;
- z_off64_t len;
+local int gz_zero(gz_statep state, z_off64_t len)
{
int first;
unsigned n;