diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-01-14 19:04:09 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-01-14 19:04:09 +0000 |
commit | 67b5f16578df3dafbe03bbc9f064e0b9439d769a (patch) | |
tree | 0be58f007aadcbfda18babd655ad8c0087eb272d /sys/arch/vax | |
parent | af6c3c3e1e2dadf084cbd6db0e1817a960fce7a9 (diff) |
- use nitems()
"doesn't hurt" deraadt@
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/vax/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/vax/vax/conf.c b/sys/arch/vax/vax/conf.c index b0f359b6258..b59e49dd43b 100644 --- a/sys/arch/vax/vax/conf.c +++ b/sys/arch/vax/vax/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.61 2010/09/23 05:02:14 claudio Exp $ */ +/* $OpenBSD: conf.c,v 1.62 2011/01/14 19:04:08 jasper Exp $ */ /* $NetBSD: conf.c,v 1.44 1999/10/27 16:38:54 ragge Exp $ */ /*- @@ -135,7 +135,7 @@ struct bdevsw bdevsw[] = bdev_disk_init(NRY,ry), /* 24: VS3100 floppy */ bdev_disk_init(NRAID,raid), /* 25: RAIDframe disk driver */ }; -int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); +int nblkdev = nitems(bdevsw); /* * Console routines for VAX console. @@ -443,7 +443,7 @@ struct cdevsw cdevsw[] = cdev_disk_init(1,diskmap), /* 79: disk mapper */ cdev_pppx_init(NPPPX,pppx), /* 80: pppx */ }; -int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); +int nchrdev = nitems(cdevsw); int mem_no = 3; /* major device number of memory special file */ @@ -535,7 +535,7 @@ int chrtoblktbl[] = { 25, /* 73 */ NODEV, /* 74 */ }; -int nchrtoblktbl = sizeof(chrtoblktbl) / sizeof(chrtoblktbl[0]); +int nchrtoblktbl = nitems(chrtoblktbl); /* * Returns true if dev is /dev/mem or /dev/kmem. |