diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-05-12 18:54:20 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-05-12 18:54:20 +0200 |
commit | abae9eefc47851cb1de44d942f494e2ea7fbb950 (patch) | |
tree | d4b197adb7aca7db9e21d6009e3e5688a2d24be6 /gzwrite.c | |
parent | 57ddf20c29349ac7524185394e3945fa9bdb1874 (diff) |
Convert remaining K&R function declarations to ANSI-C declarations.
Diffstat (limited to 'gzwrite.c')
-rw-r--r-- | gzwrite.c | 25 |
1 files changed, 6 insertions, 19 deletions
@@ -157,10 +157,7 @@ local int gz_zero(gz_statep state, z_off64_t len) } /* -- see zlib.h -- */ -int ZEXPORT gzwrite(file, buf, len) - gzFile file; - void const *buf; - unsigned len; +int ZEXPORT gzwrite(gzFile file, void const *buf, unsigned len) { unsigned put = len; gz_statep state; @@ -237,9 +234,7 @@ int ZEXPORT gzwrite(file, buf, len) } /* -- see zlib.h -- */ -int ZEXPORT gzputc(file, c) - gzFile file; - int c; +int ZEXPORT gzputc(gzFile file, int c) { unsigned have; unsigned char buf[1]; @@ -285,9 +280,7 @@ int ZEXPORT gzputc(file, c) } /* -- see zlib.h -- */ -int ZEXPORT gzputs(file, str) - gzFile file; - const char *str; +int ZEXPORT gzputs(gzFile file, const char *str) { int ret; unsigned len; @@ -360,9 +353,7 @@ int ZEXPORTVA gzprintf(gzFile file, const char *format, ...) } /* -- see zlib.h -- */ -int ZEXPORT gzflush(file, flush) - gzFile file; - int flush; +int ZEXPORT gzflush(gzFile file, int flush) { gz_statep state; @@ -392,10 +383,7 @@ int ZEXPORT gzflush(file, flush) } /* -- see zlib.h -- */ -int ZEXPORT gzsetparams(file, level, strategy) - gzFile file; - int level; - int strategy; +int ZEXPORT gzsetparams(gzFile file, int level, int strategy) { gz_statep state; z_stream *strm; @@ -434,8 +422,7 @@ int ZEXPORT gzsetparams(file, level, strategy) } /* -- see zlib.h -- */ -int ZEXPORT gzclose_w(file) - gzFile file; +int ZEXPORT gzclose_w(gzFile file) { int ret = Z_OK; gz_statep state; |