]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Style cleanup.
authorMika Lindqvist <postmaster@raasu.org>
Fri, 17 Jul 2020 18:03:52 +0000 (21:03 +0300)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 14 Aug 2020 20:21:37 +0000 (22:21 +0200)
* Remove space between function name and opening parenthesis
* Remove space closing parenthesis of cast and variable name

crc32.c
zlib.h

diff --git a/crc32.c b/crc32.c
index adf9d55a931a45cc3099f3ed81ee55676f262070..ebc2be191f1386d7e5c0584106016cc2696c45c2 100644 (file)
--- a/crc32.c
+++ b/crc32.c
@@ -33,7 +33,7 @@ const uint32_t * ZEXPORT PREFIX(get_crc_table)(void) {
 unsigned long ZEXPORT PREFIX(crc32_z)(unsigned long crc, const unsigned char *buf, size_t len) {
     if (buf == NULL) return 0;
 
-    return (unsigned long) functable.crc32((uint32_t) crc, buf, len);
+    return (unsigned long)functable.crc32((uint32_t)crc, buf, len);
 }
 #else
 uint32_t ZEXPORT PREFIX(crc32_z)(uint32_t crc, const unsigned char *buf, size_t len) {
@@ -71,7 +71,7 @@ ZLIB_INTERNAL uint32_t crc32_generic(uint32_t crc, const unsigned char *buf, uin
 
 #ifdef ZLIB_COMPAT
 unsigned long ZEXPORT PREFIX(crc32)(unsigned long crc, const unsigned char *buf, unsigned int len) {
-    return (unsigned long) PREFIX(crc32_z)((uint32_t) crc, buf, len);
+    return (unsigned long)PREFIX(crc32_z)((uint32_t)crc, buf, len);
 }
 #else
 uint32_t ZEXPORT PREFIX(crc32)(uint32_t crc, const unsigned char *buf, uint32_t len) {
@@ -191,11 +191,11 @@ static uint32_t crc32_combine_(uint32_t crc1, uint32_t crc2, z_off64_t len2) {
 /* ========================================================================= */
 #ifdef ZLIB_COMPAT
 unsigned long ZEXPORT PREFIX(crc32_combine)(unsigned long crc1, unsigned long crc2, z_off_t len2) {
-    return (unsigned long) crc32_combine_((uint32_t) crc1, (uint32_t) crc2, len2);
+    return (unsigned long)crc32_combine_((uint32_t)crc1, (uint32_t)crc2, len2);
 }
 
 unsigned long ZEXPORT PREFIX4(crc32_combine)(unsigned long crc1, unsigned long crc2, z_off64_t len2) {
-    return (unsigned long) crc32_combine_((uint32_t) crc1, (uint32_t) crc2, len2);
+    return (unsigned long)crc32_combine_((uint32_t)crc1, (uint32_t)crc2, len2);
 }
 #else
 uint32_t ZEXPORT PREFIX4(crc32_combine)(uint32_t crc1, uint32_t crc2, z_off64_t len2) {
diff --git a/zlib.h b/zlib.h
index 5922c4d181968d90e24b1eb26240053f09616c0b..3178571b385d4f345205eb9886fcd4ebd18a0bcd 100644 (file)
--- a/zlib.h
+++ b/zlib.h
@@ -1697,7 +1697,7 @@ ZEXTERN unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char *buf,
      if (crc != original_crc) error();
 */
 
-ZEXTERN unsigned long ZEXPORT crc32_z (unsigned long crc, const unsigned char *buf, size_t len);
+ZEXTERN unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char *buf, size_t len);
 /*
      Same as crc32(), but with a size_t length.
 */