summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
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/luna88k
parentaf6c3c3e1e2dadf084cbd6db0e1817a960fce7a9 (diff)
- use nitems()
"doesn't hurt" deraadt@
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r--sys/arch/luna88k/luna88k/conf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/luna88k/luna88k/conf.c b/sys/arch/luna88k/luna88k/conf.c
index e87f76779f4..538a2a16ea2 100644
--- a/sys/arch/luna88k/luna88k/conf.c
+++ b/sys/arch/luna88k/luna88k/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.15 2010/09/23 05:02:14 claudio Exp $ */
+/* $OpenBSD: conf.c,v 1.16 2011/01/14 19:04:08 jasper Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -94,7 +94,7 @@ struct bdevsw bdevsw[] =
bdev_lkm_dummy(), /* 17 */
bdev_lkm_dummy(), /* 18 */
};
-int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
+int nblkdev = nitems(bdevsw);
struct cdevsw cdevsw[] =
{
@@ -161,7 +161,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(1,diskmap), /* 54: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 55: pppx */
};
-int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
+int nchrdev = nitems(cdevsw);
int mem_no = 2; /* major device number of memory special file */
@@ -229,4 +229,4 @@ int chrtoblktbl[] = {
/* 19 */ 8, /* vnd */
/* 20 */ 5, /* st */
};
-int nchrtoblktbl = sizeof(chrtoblktbl) / sizeof(chrtoblktbl[0]);
+int nchrtoblktbl = nitems(chrtoblktbl);