summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
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/alpha
parentaf6c3c3e1e2dadf084cbd6db0e1817a960fce7a9 (diff)
- use nitems()
"doesn't hurt" deraadt@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/alpha/alpha/conf.c b/sys/arch/alpha/alpha/conf.c
index 2463e994747..9c3d11cb594 100644
--- a/sys/arch/alpha/alpha/conf.c
+++ b/sys/arch/alpha/alpha/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.65 2010/11/19 20:55:48 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.66 2011/01/14 19:04:08 jasper Exp $ */
/* $NetBSD: conf.c,v 1.16 1996/10/18 21:26:57 cgd Exp $ */
/*-
@@ -77,7 +77,7 @@ struct bdevsw bdevsw[] =
bdev_lkm_dummy(), /* 15 */
bdev_disk_init(NRAID,raid), /* 16 */
};
-int nblkdev = sizeof (bdevsw) / sizeof (bdevsw[0]);
+int nblkdev = nitems(bdevsw);
#define mmread mmrw
#define mmwrite mmrw
@@ -217,7 +217,7 @@ struct cdevsw cdevsw[] =
cdev_urio_init(NURIO,urio), /* 65: USB Diamond Rio 500 */
cdev_usbdev_init(NUSCANNER,uscanner), /* 66: USB scanners */
};
-int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
+int nchrdev = nitems(cdevsw);
int mem_no = 2; /* major device number of memory special file */
@@ -316,4 +316,4 @@ int chrtoblktbl[] = {
/* 50 */ NODEV,
/* 51 */ NODEV,
};
-int nchrtoblktbl = sizeof(chrtoblktbl) / sizeof(chrtoblktbl[0]);
+int nchrtoblktbl = nitems(chrtoblktbl);