Date: Wed, 14 Oct 2015 18:30:04 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289326 - head/sys/netinet Message-ID: <201510141830.t9EIU4Ec053427@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Wed Oct 14 18:30:04 2015 New Revision: 289326 URL: https://svnweb.freebsd.org/changeset/base/289326 Log: 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. Modified: head/sys/netinet/tcp_pcap.c Modified: head/sys/netinet/tcp_pcap.c ============================================================================== --- head/sys/netinet/tcp_pcap.c Wed Oct 14 18:29:53 2015 (r289325) +++ head/sys/netinet/tcp_pcap.c Wed Oct 14 18:30:04 2015 (r289326) @@ -76,12 +76,16 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcp_ /* 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510141830.t9EIU4Ec053427>