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
This commit is contained in:
parent
50207b2de9
commit
8bd2887be5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user