Adjust function definition in if_ovpn_c.c to avoid clang 15 warning
With clang 15, the following -Werror warning is produced: tests/sys/net/if_ovpn/if_ovpn_c.c:19:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] fake_sockaddr() ^ void This is because fake_sockaddr() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days
This commit is contained in:
parent
9356efa8c8
commit
ab28cc352b
@ -16,7 +16,7 @@
|
||||
#define OVPN_NEW_PEER _IO ('D', 1)
|
||||
|
||||
static nvlist_t *
|
||||
fake_sockaddr()
|
||||
fake_sockaddr(void)
|
||||
{
|
||||
uint32_t addr = htonl(INADDR_LOOPBACK);
|
||||
nvlist_t *nvl;
|
||||
|
Loading…
Reference in New Issue
Block a user