summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-01-14 19:04:09 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-01-14 19:04:09 +0000
commit67b5f16578df3dafbe03bbc9f064e0b9439d769a (patch)
tree0be58f007aadcbfda18babd655ad8c0087eb272d /sys/arch/octeon
parentaf6c3c3e1e2dadf084cbd6db0e1817a960fce7a9 (diff)
- use nitems()
"doesn't hurt" deraadt@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r--sys/arch/octeon/octeon/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/octeon/octeon/conf.c b/sys/arch/octeon/octeon/conf.c
index df20c6d8d27..892ed1f1795 100644
--- a/sys/arch/octeon/octeon/conf.c
+++ b/sys/arch/octeon/octeon/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.5 2010/11/22 21:10:45 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.6 2011/01/14 19:04:08 jasper Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -83,7 +83,7 @@ struct bdevsw bdevsw[] =
bdev_disk_init(NOCTCF,octcf), /* 15: CF disk */
};
-int nblkdev = sizeof (bdevsw) / sizeof (bdevsw[0]);
+int nblkdev = nitems(bdevsw);
/*
* Character devices.
@@ -232,7 +232,7 @@ struct cdevsw cdevsw[] =
cdev_usbdev_init(NUSCANNER,uscanner), /* 72: USB scanners */
};
-int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
+int nchrdev = nitems(cdevsw);
/*
* Swapdev is a fake device implemented
@@ -305,7 +305,7 @@ int chrtoblktbl[] = {
/* 23 */ 6 /* ccd */
};
-int nchrtoblktbl = sizeof(chrtoblktbl) / sizeof(int);
+int nchrtoblktbl = nitems(chrtoblktbl);
#include <dev/cons.h>