git: 7550e242ab4c - main - zlib crc32: Add prototypes for recently-added static functions.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Sep 2022 21:06:41 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7550e242ab4c118ba48171577ccadf81ba739847 commit 7550e242ab4c118ba48171577ccadf81ba739847 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-09-28 21:00:27 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-09-28 21:00:27 +0000 zlib crc32: Add prototypes for recently-added static functions. This appeases -Wstrict-prototypes with GCC. Using a separate prototype using the OF macro seems to be consistent with the rest of this file which still supports pre-ANSI C. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36755 --- sys/contrib/zlib/crc32.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/contrib/zlib/crc32.c b/sys/contrib/zlib/crc32.c index 451887bc7ce4..382b9a322fda 100644 --- a/sys/contrib/zlib/crc32.c +++ b/sys/contrib/zlib/crc32.c @@ -114,6 +114,8 @@ local z_crc_t x2nmodp OF((z_off64_t n, unsigned k)); instruction, if one is available. This assumes that word_t is either 32 bits or 64 bits. */ +local z_word_t byte_swap OF((z_word_t word)); + local z_word_t byte_swap(word) z_word_t word; { @@ -714,6 +716,8 @@ unsigned long ZEXPORT crc32_z(crc, buf, len) least-significant byte of the word as the first byte of data, without any pre or post conditioning. This is used to combine the CRCs of each braid. */ +local z_crc_t crc_word OF((z_word_t data)); + local z_crc_t crc_word(data) z_word_t data; { @@ -723,6 +727,8 @@ local z_crc_t crc_word(data) return (z_crc_t)data; } +local z_word_t crc_word_big OF((z_word_t data)); + local z_word_t crc_word_big(data) z_word_t data; {