diff options
author | bz <bz@FreeBSD.org> | 2015-10-14 18:30:04 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2015-10-14 18:30:04 +0000 |
commit | 857b8f754e7f36463bd3bd5ef6eda0de02778e80 (patch) | |
tree | ce715b5b725f018767bd6932ef11770f05b6c170 /sys/netinet | |
parent | 93aac33bebffcc094c942e8ef9bf5934f3cab81b (diff) | |
download | FreeBSD-src-857b8f754e7f36463bd3bd5ef6eda0de02778e80.zip FreeBSD-src-857b8f754e7f36463bd3bd5ef6eda0de02778e80.tar.gz |
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.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_pcap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/tcp_pcap.c b/sys/netinet/tcp_pcap.c index 7a3514f..c431f24 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); |