HomeFreeBSD

Adjust sctp_init_sysctls() definition to avoid clang 15 warning

Description

Adjust sctp_init_sysctls() definition to avoid clang 15 warning

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

sys/netinet/sctp_sysctl.c:55:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
sctp_init_sysctls()
                 ^
                  void

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

MFC after: 3 days

(cherry picked from commit 205798564926589ed621b88d1853429d00de6de0)

Details

Provenance
dimAuthored on Jul 25 2022, 8:07 PM
Parents
rGf2773b998c7d: Adjust function definitions in if_pfsync.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown