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

Details

Provenance
dimAuthored on Jul 25 2022, 8:07 PM
Parents
rG5bfd8cf36913: Fix unused variable warning in sctp_timer.c
Branches
Unknown
Tags
Unknown