git: ab28cc352b53 - main - Adjust function definition in if_ovpn_c.c to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 14 Aug 2022 11:15:51 UTC
The branch main has been updated by dim:

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

commit ab28cc352b532ce739b9d9e4bdf948e7bfec5d21
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-13 17:40:07 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-14 11:11:52 +0000

    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
---
 tests/sys/net/if_ovpn/if_ovpn_c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/net/if_ovpn/if_ovpn_c.c b/tests/sys/net/if_ovpn/if_ovpn_c.c
index 44363620d277..d98f5a0dd8e6 100644
--- a/tests/sys/net/if_ovpn/if_ovpn_c.c
+++ b/tests/sys/net/if_ovpn/if_ovpn_c.c
@@ -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;