From a564bcd1131ef4e27049abdc5ce16ac24f646760 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Mon, 20 Dec 2021 08:23:44 -0800 Subject: Fixed crc32_combine_gen declaration warning in zlib-ng API. --- crc32_comb.c | 11 +++++++---- 1 file 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) { -- cgit v1.2.3