]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Update remaining function prototypes to ANSI C standard
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sat, 23 May 2015 19:14:45 +0000 (21:14 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Sat, 23 May 2015 19:14:45 +0000 (21:14 +0200)
crc32.c
deflate.c
trees.c
zutil.c

diff --git a/crc32.c b/crc32.c
index 66d6858802a4cd10bed1fc41fbbf58002bcebb89..da7a8dfc400ca79dc0690a60c69128cb6fbc55ac 100644 (file)
--- 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)
index 4a4abf2ad1ade93262230360f23e52677f9b6f1a..ff9a8fd6dbee53e64d11f0f27747d45a970db61c 100644 (file)
--- 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 0349f5c2716dd0b0e4660d89079a8f84c039e006..3d7ddb2e1efc045892fce1003da531cb9b7a5aac 100644 (file)
--- 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 d7646481d7777f5565bdfa2d2af2f14f1b8c35c9..d9fda0983c3afefb7bbd1395ed9786dff9e26e9c 100644 (file)
--- 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;