diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2020-07-17 21:03:52 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-08-14 22:21:37 +0200 |
commit | 7b4e7f158ada676db0d59ee98fde79d1968ebac8 (patch) | |
tree | 076581cb657c16058d322c16cd078dd732ca2bf6 /crc32.c | |
parent | e3fcf313af59cfaf1d2aed8402e2b9798f6057cd (diff) |
Style cleanup.
* Remove space between function name and opening parenthesis
* Remove space closing parenthesis of cast and variable name
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |