summaryrefslogtreecommitdiff
path: root/sys/netmpls
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-31 10:36:43 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-31 10:36:43 +0000
commite6afa8d9323fde46a5d11c7bc09a6715bf448dc9 (patch)
treed2f1055e28627b85c71f875235fc6fa06f3640d8 /sys/netmpls
parent40d1e31818b82eae373c2f0ed10a196cc0f8d58a (diff)
- use nitems(); no binary change
ok claudio@
Diffstat (limited to 'sys/netmpls')
-rw-r--r--sys/netmpls/mpls_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_proto.c b/sys/netmpls/mpls_proto.c
index 525b19417fe..7d7868a22bc 100644
--- a/sys/netmpls/mpls_proto.c
+++ b/sys/netmpls/mpls_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_proto.c,v 1.5 2010/10/15 12:42:56 claudio Exp $ */
+/* $OpenBSD: mpls_proto.c,v 1.6 2011/03/31 10:36:42 jasper Exp $ */
/*
* Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project.
@@ -69,7 +69,7 @@ struct protosw mplssw[] = {
struct domain mplsdomain = {
AF_MPLS, "mpls", mpls_init, 0, 0,
mplssw,
- &mplssw[sizeof(mplssw)/sizeof(mplssw[0])], 0,
+ &mplssw[nitems(mplssw)], 0,
rn_mpath_inithead,
offsetof(struct sockaddr_mpls, smpls_label) << 3,
sizeof(struct sockaddr_mpls)