aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-25 20:07:49 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-25 20:08:35 +0000
commit205798564926589ed621b88d1853429d00de6de0 (patch)
tree97e1a744879533dae8b3dac6691e91b304425ff6
parent5bfd8cf3691381c19296d76d7944d6c1df5f4a75 (diff)
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
-rw-r--r--sys/netinet/sctp_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_sysctl.c b/sys/netinet/sctp_sysctl.c
index e7e53e52b226..fcc02f315a1b 100644
--- a/sys/netinet/sctp_sysctl.c
+++ b/sys/netinet/sctp_sysctl.c
@@ -52,7 +52,7 @@ FEATURE(sctp, "Stream Control Transmission Protocol");
*/
void
-sctp_init_sysctls()
+sctp_init_sysctls(void)
{
SCTP_BASE_SYSCTL(sctp_sendspace) = SCTPCTL_MAXDGRAM_DEFAULT;
SCTP_BASE_SYSCTL(sctp_recvspace) = SCTPCTL_RECVSPACE_DEFAULT;