aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_socket.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-21 19:40:10 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-21 19:40:10 +0000
commit323b076e9c3bdccf78698ad0f1934ca8ec5438ce (patch)
treeeafad75827e36e967c59edef51d49100cec9cad4 /sys/netgraph/ng_socket.c
parent658b482e0dbe2298ff3b2fef41aa7eed8e68642c (diff)
downloadsrc-323b076e9c3bdccf78698ad0f1934ca8ec5438ce.tar.gz
src-323b076e9c3bdccf78698ad0f1934ca8ec5438ce.zip
sys: use our nitems() macro when param.h is available.
This should cover all the remaining cases in the kernel. Discussed in: freebsd-current
Notes
Notes: svn path=/head/; revision=298431
Diffstat (limited to 'sys/netgraph/ng_socket.c')
-rw-r--r--sys/netgraph/ng_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c
index 76d6383f0fb8..08ee76300ae8 100644
--- a/sys/netgraph/ng_socket.c
+++ b/sys/netgraph/ng_socket.c
@@ -1163,7 +1163,7 @@ struct domain ngdomain = {
.dom_family = AF_NETGRAPH,
.dom_name = "netgraph",
.dom_protosw = ngsw,
- .dom_protoswNPROTOSW = &ngsw[sizeof(ngsw) / sizeof(ngsw[0])]
+ .dom_protoswNPROTOSW = &ngsw[nitems(ngsw)]
};
/*