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:
Dimitry Andric 2022-08-13 19:40:07 +02:00
parent 9356efa8c8
commit ab28cc352b

View File

@ -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;