summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket2.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
commit81930014ef2caa3b69ed663b695976aa4ee7b34d (patch)
treedd8285cb8ca0683b3aec19388562baed440628cf /sys/kern/uipc_socket2.c
parent23d3a203adf35f629acbd392b7579f2658b11886 (diff)
Notes
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r--sys/kern/uipc_socket2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c
index 9b23c859fd82..970dcec6a3b3 100644
--- a/sys/kern/uipc_socket2.c
+++ b/sys/kern/uipc_socket2.c
@@ -1012,7 +1012,7 @@ SYSCTL_INT(_kern_ipc, KIPC_SOCKBUF_WASTE, sockbuf_waste_factor, CTLFLAG_RW,
*/
static void init_maxsockets(void *ignored)
{
- TUNABLE_INT_FETCH("kern.ipc.maxsockets", 0, maxsockets);
- maxsockets = imax(maxsockets, imax(maxfiles, nmbclusters));
+ TUNABLE_INT_FETCH("kern.ipc.maxsockets", &maxsockets);
+ maxsockets = imax(maxsockets, imax(maxfiles, nmbclusters));
}
SYSINIT(param, SI_SUB_TUNABLES, SI_ORDER_ANY, init_maxsockets, NULL);