git: 8bd2887be510 - main - Adjust function definitions in netipsec's key.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 26 Jul 2022 19:25:24 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=8bd2887be5105010e73fc35ddd25021e186811b8

commit 8bd2887be5105010e73fc35ddd25021e186811b8
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 19:15:37 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-26 19:25:09 +0000

    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
---
 sys/netipsec/key.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index 419f0e517b14..b1a99cfbb261 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -6429,7 +6429,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;
@@ -6486,7 +6486,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;