git: 1eea6b909783 - main - Adjust ipfw_iface_{init,destroy}() definitions to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 21 Jul 2022 19:53:36 UTC
The branch main has been updated by dim:

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

commit 1eea6b9097834484f2238298f550bb418901c313
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-21 19:37:09 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-21 19:38:17 +0000

    Adjust ipfw_iface_{init,destroy}() definitions to avoid clang 15 warning
    
    With clang 15, the following -Werror warnings are produced:
    
        sys/netpfil/ipfw/ip_fw_iface.c:206:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        ipfw_iface_init()
                       ^
                        void
        sys/netpfil/ipfw/ip_fw_iface.c:219:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        ipfw_iface_destroy()
                          ^
                           void
    
    This is because ipfw_iface_init() and ipfw_iface_destroy() are declared
    with (void) argument lists, but defined with empty argument lists. Make
    the definitions match the declarations.
    
    MFC after:      3 days
---
 sys/netpfil/ipfw/ip_fw_iface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netpfil/ipfw/ip_fw_iface.c b/sys/netpfil/ipfw/ip_fw_iface.c
index 7993464819c9..3e366db3af9a 100644
--- a/sys/netpfil/ipfw/ip_fw_iface.c
+++ b/sys/netpfil/ipfw/ip_fw_iface.c
@@ -203,7 +203,7 @@ ipfw_kiflookup(char *name)
  * mutex init.
  */
 int
-ipfw_iface_init()
+ipfw_iface_init(void)
 {
 
 	mtx_init(&vnet_mtx, "IPFW ifhandler mtx", NULL, MTX_DEF);
@@ -216,7 +216,7 @@ ipfw_iface_init()
  * Unregister khandlers iff init has been done.
  */
 void
-ipfw_iface_destroy()
+ipfw_iface_destroy(void)
 {
 
 	IPFW_DEL_SOPT_HANDLER(1, scodes);