HomeFreeBSD

Adjust iface_khandler_deregister() definition to avoid clang 15 warning

Description

Adjust iface_khandler_deregister() definition to avoid clang 15 warning

With clang 15, the following -Werror warning is produced:

sys/netpfil/ipfw/ip_fw_iface.c:159:26: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
iface_khandler_deregister()
                         ^
                          void

This is because iface_khandler_deregister() is declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 21 2022, 7:32 PM
Parents
rGd62830c5e493: Adjust ipfw_{init,destroy}_sopt_handler() definitions to avoid clang 15 warning
Branches
Unknown
Tags
Unknown