From: Hans Kristian Rosbach Date: Sat, 23 May 2015 19:14:45 +0000 (+0200) Subject: Update remaining function prototypes to ANSI C standard X-Git-Tag: 1.9.9-b1~810 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f533fd6e9b2dc7bfd9ce50570f2f02dd8ec6a7ed;p=thirdparty%2Fzlib-ng.git Update remaining function prototypes to ANSI C standard --- diff --git a/crc32.c b/crc32.c index 66d685880..da7a8dfc4 100644 --- a/crc32.c +++ b/crc32.c @@ -182,7 +182,7 @@ static void write_table(FILE *out, const uint32_t *table) /* ========================================================================= * This function can be used by asm versions of crc32() */ -const uint32_t * ZEXPORT get_crc_table() +const uint32_t * ZEXPORT get_crc_table(void) { #ifdef DYNAMIC_CRC_TABLE if (crc_table_empty) diff --git a/deflate.c b/deflate.c index 4a4abf2ad..ff9a8fd6d 100644 --- a/deflate.c +++ b/deflate.c @@ -641,8 +641,7 @@ local void putShortMSB (deflate_state *s, uInt b) * to avoid allocating a large strm->next_out buffer and copying into it. * (See also read_buf()). */ -ZLIB_INTERNAL void flush_pending(strm) - z_stream *strm; +ZLIB_INTERNAL void flush_pending(z_stream *strm) { unsigned len; deflate_state *s = strm->state; diff --git a/trees.c b/trees.c index 0349f5c27..3d7ddb2e1 100644 --- a/trees.c +++ b/trees.c @@ -155,7 +155,7 @@ local void gen_trees_header (void); /* =========================================================================== * Initialize the various 'constant' tables. */ -local void tr_static_init() +local void tr_static_init(void) { #if defined(GEN_TREES_H) static int static_init_done = 0; diff --git a/zutil.c b/zutil.c index d7646481d..d9fda0983 100644 --- a/zutil.c +++ b/zutil.c @@ -25,12 +25,12 @@ const char * const z_errmsg[10] = { const char zlibng_string[] = " zlib-ng 1.9.9 forked from zlib 1.2.8 "; -const char * ZEXPORT zlibVersion() +const char * ZEXPORT zlibVersion(void) { return ZLIB_VERSION; } -uLong ZEXPORT zlibCompileFlags() +uLong ZEXPORT zlibCompileFlags(void) { uLong flags;