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 /infback.c | |
parent | 57ddf20c29349ac7524185394e3945fa9bdb1874 (diff) |
Convert remaining K&R function declarations to ANSI-C declarations.
Diffstat (limited to 'infback.c')
-rw-r--r-- | infback.c | 19 |
1 files changed, 5 insertions, 14 deletions
@@ -25,12 +25,8 @@ local void fixedtables (struct inflate_state *state); windowBits is in the range 8..15, and window is a user-supplied window and output buffer that is 2**windowBits bytes. */ -int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) -z_stream *strm; -int windowBits; -unsigned char *window; -const char *version; -int stream_size; +int ZEXPORT inflateBackInit_(z_stream *strm, int windowBits, unsigned char *window, + const char *version, int stream_size) { struct inflate_state *state; @@ -238,12 +234,8 @@ local void fixedtables(struct inflate_state *state) inflateBack() can also return Z_STREAM_ERROR if the input parameters are not correct, i.e. strm is Z_NULL or the state was not initialized. */ -int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc) -z_stream *strm; -in_func in; -void *in_desc; -out_func out; -void *out_desc; +int ZEXPORT inflateBack(z_stream *strm, in_func in, void *in_desc, + out_func out, void *out_desc) { struct inflate_state *state; z_const unsigned char *next; /* next input */ @@ -619,8 +611,7 @@ void *out_desc; return ret; } -int ZEXPORT inflateBackEnd(strm) -z_stream *strm; +int ZEXPORT inflateBackEnd(z_stream *strm) { if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) return Z_STREAM_ERROR; |