diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2021-12-20 08:23:44 -0800 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-12-24 12:52:14 +0100 |
commit | a564bcd1131ef4e27049abdc5ce16ac24f646760 (patch) | |
tree | bf8925dd544b46f39af084b7ec84405cd07e7ee8 | |
parent | 5c7d5a215916465539707ec6886380d9046e7266 (diff) |
Fixed crc32_combine_gen declaration warning in zlib-ng API.
-rw-r--r-- | crc32_comb.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crc32_comb.c b/crc32_comb.c index 092c595..91ddf4f 100644 --- a/crc32_comb.c +++ b/crc32_comb.c @@ -18,7 +18,7 @@ /* Local functions for crc concatenation */ static uint32_t crc32_combine_(uint32_t crc1, uint32_t crc2, z_off64_t len2); -static void crc32_combine_gen_(uint32_t *op, z_off64_t len2); +static void crc32_combine_gen_(uint32_t op[GF2_DIM], z_off64_t len2); /* ========================================================================= */ static uint32_t crc32_combine_(uint32_t crc1, uint32_t crc2, z_off64_t len2) { @@ -49,7 +49,7 @@ uint32_t Z_EXPORT PREFIX4(crc32_combine)(uint32_t crc1, uint32_t crc2, z_off64_t /* ========================================================================= */ -static void crc32_combine_gen_(uint32_t *op, z_off64_t len2) { +static void crc32_combine_gen_(uint32_t op[GF2_DIM], z_off64_t len2) { uint32_t row; int j; unsigned i; @@ -96,11 +96,14 @@ static void crc32_combine_gen_(uint32_t *op, z_off64_t len2) { void Z_EXPORT PREFIX(crc32_combine_gen)(uint32_t *op, z_off_t len2) { crc32_combine_gen_(op, len2); } -#endif - void Z_EXPORT PREFIX4(crc32_combine_gen)(uint32_t *op, z_off64_t len2) { crc32_combine_gen_(op, len2); } +#else +void Z_EXPORT PREFIX4(crc32_combine_gen)(uint32_t op[GF2_DIM], z_off64_t len2) { + crc32_combine_gen_(op, len2); +} +#endif /* ========================================================================= */ uint32_t Z_EXPORT PREFIX(crc32_combine_op)(uint32_t crc1, uint32_t crc2, const uint32_t *op) { |