diff options
author | peter <peter@FreeBSD.org> | 2001-06-06 22:17:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-06-06 22:17:08 +0000 |
commit | 0732738ec450bcfa11cfc73cc53b16c92c4a5e9a (patch) | |
tree | 58ecfe664c4cc2fd28db0c76b33469ccff8dee55 /sys/kern/uipc_socket2.c | |
parent | 1127de3ac7859c762c70d8deecce993108ef82f3 (diff) | |
download | FreeBSD-src-0732738ec450bcfa11cfc73cc53b16c92c4a5e9a.zip FreeBSD-src-0732738ec450bcfa11cfc73cc53b16c92c4a5e9a.tar.gz |
Make the TUNABLE_*() macros look and behave more consistantly like the
SYSCTL_*() macros. TUNABLE_INT_DECL() was an odd name because it didn't
actually declare the int, which is what the name suggests it would do.
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r-- | sys/kern/uipc_socket2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 9b23c85..970dcec 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); |