diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-25 22:31:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-25 22:31:19 +0000 |
commit | 45c30a5c60ea1887f7fb096ff31b560860586936 (patch) | |
tree | 4ae41b7a2dd7137e209c3cfd674e27947c185565 /usr.bin | |
parent | d61db605f4bcb38228116b6fd698f98349e04aa2 (diff) |
do not use nitems(); ok claudio
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/mbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index 670db344260..e7bcf5cf47b 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbuf.c,v 1.29 2009/01/27 13:49:21 claudio Exp $ */ +/* $OpenBSD: mbuf.c,v 1.30 2009/06/25 22:31:18 deraadt Exp $ */ /* $NetBSD: mbuf.c,v 1.9 1996/05/07 02:55:03 thorpej Exp $ */ /* @@ -144,7 +144,7 @@ mbpr(void) if (!strncmp(name, "mbpl", strlen("mbpl"))) bcopy(&pool, &mbpool, sizeof(struct pool)); - else if (mclp < nitems(mclpools) && + else if (mclp < sizeof(mclpools) / sizeof(mclpools[0]) && !strncmp(name, *mclnamep, strlen(*mclnamep))) { bcopy(&pool, &mclpools[mclp++], sizeof(struct pool)); |