Skip to content

Commit 7b4e7f1

Browse files
mtl1979Dead2
authored andcommitted
Style cleanup.
* Remove space between function name and opening parenthesis * Remove space closing parenthesis of cast and variable name
1 parent e3fcf31 commit 7b4e7f1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

crc32.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const uint32_t * ZEXPORT PREFIX(get_crc_table)(void) {
3333
unsigned long ZEXPORT PREFIX(crc32_z)(unsigned long crc, const unsigned char *buf, size_t len) {
3434
if (buf == NULL) return 0;
3535

36-
return (unsigned long) functable.crc32((uint32_t) crc, buf, len);
36+
return (unsigned long)functable.crc32((uint32_t)crc, buf, len);
3737
}
3838
#else
3939
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
7171

7272
#ifdef ZLIB_COMPAT
7373
unsigned long ZEXPORT PREFIX(crc32)(unsigned long crc, const unsigned char *buf, unsigned int len) {
74-
return (unsigned long) PREFIX(crc32_z)((uint32_t) crc, buf, len);
74+
return (unsigned long)PREFIX(crc32_z)((uint32_t)crc, buf, len);
7575
}
7676
#else
7777
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) {
191191
/* ========================================================================= */
192192
#ifdef ZLIB_COMPAT
193193
unsigned long ZEXPORT PREFIX(crc32_combine)(unsigned long crc1, unsigned long crc2, z_off_t len2) {
194-
return (unsigned long) crc32_combine_((uint32_t) crc1, (uint32_t) crc2, len2);
194+
return (unsigned long)crc32_combine_((uint32_t)crc1, (uint32_t)crc2, len2);
195195
}
196196

197197
unsigned long ZEXPORT PREFIX4(crc32_combine)(unsigned long crc1, unsigned long crc2, z_off64_t len2) {
198-
return (unsigned long) crc32_combine_((uint32_t) crc1, (uint32_t) crc2, len2);
198+
return (unsigned long)crc32_combine_((uint32_t)crc1, (uint32_t)crc2, len2);
199199
}
200200
#else
201201
uint32_t ZEXPORT PREFIX4(crc32_combine)(uint32_t crc1, uint32_t crc2, z_off64_t len2) {

zlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ ZEXTERN unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char *buf,
16971697
if (crc != original_crc) error();
16981698
*/
16991699

1700-
ZEXTERN unsigned long ZEXPORT crc32_z (unsigned long crc, const unsigned char *buf, size_t len);
1700+
ZEXTERN unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char *buf, size_t len);
17011701
/*
17021702
Same as crc32(), but with a size_t length.
17031703
*/

0 commit comments

Comments
 (0)