]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Make the names in functions declarations identical to definitions.
authorMark Adler <zlib@madler.net>
Fri, 13 Oct 2017 03:03:51 +0000 (20:03 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 13 Dec 2018 13:28:50 +0000 (14:28 +0100)
gzwrite.c
trees.c

index 8395b65eb8e5db15f7a4149e91e609fe1b012aca..b8c643c0a45b2d4badfc3436ba761967fe85229b 100644 (file)
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -319,7 +319,7 @@ int ZEXPORT PREFIX(gzputc)(gzFile file, int c) {
 }
 
 /* -- see zlib.h -- */
-int ZEXPORT PREFIX(gzputs)(gzFile file, const char *str) {
+int ZEXPORT PREFIX(gzputs)(gzFile file, const char *s) {
     int ret;
     size_t len;
     gz_state *state;
@@ -334,8 +334,8 @@ int ZEXPORT PREFIX(gzputs)(gzFile file, const char *str) {
         return -1;
 
     /* write string */
-    len = strlen(str);
-    ret = (int)gz_write(state, str, len);
+    len = strlen(s);
+    ret = (int)gz_write(state, s, len);
     return ret == 0 && len != 0 ? -1 : ret;
 }
 
diff --git a/trees.c b/trees.c
index 130410916d83d28cabc9c365b99c373c8e913c3c..de4ca2491df1ced2d84cbdaca0b7e378783b79e4 100644 (file)
--- a/trees.c
+++ b/trees.c
@@ -145,7 +145,7 @@ static int  build_bl_tree    (deflate_state *s);
 static void send_all_trees   (deflate_state *s, int lcodes, int dcodes, int blcodes);
 static void compress_block   (deflate_state *s, const ct_data *ltree, const ct_data *dtree);
 static int  detect_data_type (deflate_state *s);
-static unsigned bi_reverse   (unsigned value, int length);
+static unsigned bi_reverse   (unsigned code, int len);
 static void bi_flush         (deflate_state *s);
 
 #ifdef GEN_TREES_H