diff options
author | hansr <hk-git@circlestorm.org> | 2014-10-18 22:49:16 +0200 |
---|---|---|
committer | hansr <hk-git@circlestorm.org> | 2014-10-18 22:49:16 +0200 |
commit | 84002037ee33b2fcf8bd3c69b3a7e3630a04f914 (patch) | |
tree | 88ffbcc6ee04d7fca18103dcac8fd3898e2083fe /gzlib.c | |
parent | 8999d0a963bd0e5080b6ed56bd073d2f5544e982 (diff) |
Rewrite K&R-style function prototypes to ANSI-C-style.
Only internal functions, no exported functions in this commit.
Diffstat (limited to 'gzlib.c')
-rw-r--r-- | gzlib.c | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -30,8 +30,7 @@ local gzFile gz_open (const void *, int, const char *); The gz_strwinerror function does not change the current setting of GetLastError. */ -char ZLIB_INTERNAL *gz_strwinerror (error) - DWORD error; +char ZLIB_INTERNAL *gz_strwinerror (DWORD error) { static char buf[1024]; @@ -72,8 +71,7 @@ char ZLIB_INTERNAL *gz_strwinerror (error) #endif /* UNDER_CE */ /* Reset gzip file state */ -local void gz_reset(state) - gz_statep state; +local void gz_reset(gz_statep state) { state->x.have = 0; /* no output data available */ if (state->mode == GZ_READ) { /* for reading ... */ @@ -88,10 +86,7 @@ local void gz_reset(state) } /* Open a gzip file either by name or file descriptor. */ -local gzFile gz_open(path, fd, mode) - const void *path; - int fd; - const char *mode; +local gzFile gz_open(const void *path, int fd, const char *mode) { gz_statep state; size_t len; @@ -564,10 +559,7 @@ void ZEXPORT gzclearerr(file) memory). Simply save the error message as a static string. If there is an allocation failure constructing the error message, then convert the error to out of memory. */ -void ZLIB_INTERNAL gz_error(state, err, msg) - gz_statep state; - int err; - const char *msg; +void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg) { /* free previously allocated message and clear */ if (state->msg != NULL) { |