summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2020-07-17 21:03:52 +0300
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-08-14 22:21:37 +0200
commit7b4e7f158ada676db0d59ee98fde79d1968ebac8 (patch)
tree076581cb657c16058d322c16cd078dd732ca2bf6
parente3fcf313af59cfaf1d2aed8402e2b9798f6057cd (diff)
downloadProject-Tick-7b4e7f158ada676db0d59ee98fde79d1968ebac8.tar.gz
Project-Tick-7b4e7f158ada676db0d59ee98fde79d1968ebac8.zip
Style cleanup.
* Remove space between function name and opening parenthesis * Remove space closing parenthesis of cast and variable name
-rw-r--r--crc32.c8
-rw-r--r--zlib.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/crc32.c b/crc32.c
index adf9d55a93..ebc2be191f 100644
--- 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 5922c4d181..3178571b38 100644
--- 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.
*/