summaryrefslogtreecommitdiff
path: root/sys/net
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/net
parent40d1e31818b82eae373c2f0ed10a196cc0f8d58a (diff)
- use nitems(); no binary change
ok claudio@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 55f111c7a70..45c1203d88c 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.114 2011/02/14 12:53:27 tedu Exp $ */
+/* $OpenBSD: rtsock.c,v 1.115 2011/03/31 10:36:42 jasper Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -1469,4 +1469,4 @@ struct protosw routesw[] = {
struct domain routedomain =
{ PF_ROUTE, "route", route_init, 0, 0,
- routesw, &routesw[sizeof(routesw)/sizeof(routesw[0])] };
+ routesw, &routesw[nitems(routesw)] };