aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-26 19:15:37 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-29 18:31:12 +0000
commit823283ab45b8e705dbe6c44a6570e50d0151ae65 (patch)
treeec80c878cba2a7d452df866a19af0d639f5fb949 /sys/netipsec
parent9a9aea956b8ebb3aded4799db73f69f5ba6e5035 (diff)
Adjust function definitions in netipsec's key.c to avoid clang 15 warnings
With clang 15, the following -Werror warnings are produced: sys/netipsec/key.c:6432:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] key_getcomb_ah() ^ void sys/netipsec/key.c:6489:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] key_getcomb_ipcomp() ^ void This is because key_getcomb_ah() and key_getcomb_ipcomp() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit 8bd2887be5105010e73fc35ddd25021e186811b8)
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index b9d867a1d83a..4bb46cd9a5c1 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -6377,7 +6377,7 @@ key_getsizes_ah(const struct auth_hash *ah, int alg, u_int16_t* min,
* XXX reorder combinations by preference
*/
static struct mbuf *
-key_getcomb_ah()
+key_getcomb_ah(void)
{
const struct auth_hash *algo;
struct sadb_comb *comb;
@@ -6434,7 +6434,7 @@ key_getcomb_ah()
* XXX reorder combinations by preference
*/
static struct mbuf *
-key_getcomb_ipcomp()
+key_getcomb_ipcomp(void)
{
const struct comp_algo *algo;
struct sadb_comb *comb;