summaryrefslogtreecommitdiffstats
path: root/sys/netnatm/natm_proto.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-19 23:48:27 +0000
committerpfg <pfg@FreeBSD.org>2016-04-19 23:48:27 +0000
commita7d40a88c91d105dcfe2f235bc84a522bfea3de2 (patch)
treede102c840aded1a3b5511745802f9d6ef74aeb6f /sys/netnatm/natm_proto.c
parent99e9a53c8161ee4ae550ad18b73edd303a3724f4 (diff)
downloadFreeBSD-src-a7d40a88c91d105dcfe2f235bc84a522bfea3de2.zip
FreeBSD-src-a7d40a88c91d105dcfe2f235bc84a522bfea3de2.tar.gz
kernel: use our nitems() macro when it is available through param.h.
No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current
Diffstat (limited to 'sys/netnatm/natm_proto.c')
-rw-r--r--sys/netnatm/natm_proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netnatm/natm_proto.c b/sys/netnatm/natm_proto.c
index b064c43..aa7fa2c 100644
--- a/sys/netnatm/natm_proto.c
+++ b/sys/netnatm/natm_proto.c
@@ -87,7 +87,7 @@ static struct domain natmdomain = {
.dom_name = "natm",
.dom_init = natm_init,
.dom_protosw = natmsw,
- .dom_protoswNPROTOSW = &natmsw[sizeof(natmsw)/sizeof(natmsw[0])],
+ .dom_protoswNPROTOSW = &natmsw[nitems(natmsw)],
};
static struct netisr_handler natm_nh = {
OpenPOWER on IntegriCloud