git: a98fa7905e52 - stable/13 - Adjust function definitions in route_ctl.c to avoid clang 15 warnings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 29 Jul 2022 18:47:30 UTC
The branch stable/13 has been updated by dim:

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

commit a98fa7905e52e58671f6af1b93688a724b4ead07
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 18:28:25 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-29 18:29:59 +0000

    Adjust function definitions in route_ctl.c to avoid clang 15 warnings
    
    With clang 15, the following -Werror warnings are produced:
    
        sys/net/route/route_ctl.c:130:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        vnet_rtzone_init()
                        ^
                         void
        sys/net/route/route_ctl.c:139:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        vnet_rtzone_destroy()
                           ^
                            void
    
    This is because vnet_rtzone_init() and vnet_rtzone_destroy() are
    declared with (void) argument lists, but defined with empty argument
    lists. Make the definitions match the declarations.
    
    MFC after:      3 days
    
    (cherry picked from commit 5e1097f83cbe353839888c0aad8e31bb62b8e9a4)
---
 sys/net/route/route_ctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c
index 123939fd31c9..292233541406 100644
--- a/sys/net/route/route_ctl.c
+++ b/sys/net/route/route_ctl.c
@@ -122,7 +122,7 @@ VNET_DEFINE_STATIC(uma_zone_t, rtzone);
 SYSCTL_NODE(_net_route, OID_AUTO, debug, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "");
 
 void
-vnet_rtzone_init()
+vnet_rtzone_init(void)
 {
 
 	V_rtzone = uma_zcreate("rtentry", sizeof(struct rtentry),
@@ -131,7 +131,7 @@ vnet_rtzone_init()
 
 #ifdef VIMAGE
 void
-vnet_rtzone_destroy()
+vnet_rtzone_destroy(void)
 {
 
 	uma_zdestroy(V_rtzone);