From f87ec781ef8e83e0e1bd442db8360272498d0b6b Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 14 Oct 2015 18:30:04 +0000 Subject: [PATCH] Properly define functions withut argument and wrap for { for style purposes as followed in the rest of the file. This will hopefully make gcc more happy. --- sys/netinet/tcp_pcap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_pcap.c b/sys/netinet/tcp_pcap.c index 7a3514f9646d..c431f2444bd8 100644 --- a/sys/netinet/tcp_pcap.c +++ b/sys/netinet/tcp_pcap.c @@ -76,12 +76,16 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcp_pcap_packets, CTLFLAG_RW, /* Initialize the values. */ static void -tcp_pcap_max_set() { +tcp_pcap_max_set(void) +{ + tcp_pcap_clusters_referenced_max = nmbclusters / 4; } void -tcp_pcap_init() { +tcp_pcap_init(void) +{ + tcp_pcap_max_set(); EVENTHANDLER_REGISTER(nmbclusters_change, tcp_pcap_max_set, NULL, EVENTHANDLER_PRI_ANY);