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/mvme68k | |
parent | af6c3c3e1e2dadf084cbd6db0e1817a960fce7a9 (diff) |
- use nitems()
"doesn't hurt" deraadt@
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/mvme68k/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/mvme68k/conf.c b/sys/arch/mvme68k/mvme68k/conf.c index f7039a478fb..c2e7b28d8f9 100644 --- a/sys/arch/mvme68k/mvme68k/conf.c +++ b/sys/arch/mvme68k/mvme68k/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.51 2010/11/22 21:10:45 miod Exp $ */ +/* $OpenBSD: conf.c,v 1.52 2011/01/14 19:04:08 jasper Exp $ */ /*- * Copyright (c) 1995 Theo de Raadt @@ -102,7 +102,7 @@ struct bdevsw bdevsw[] = bdev_lkm_dummy(), /* 17 */ bdev_lkm_dummy(), /* 18 */ }; -int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); +int nblkdev = nitems(bdevsw); #include "sram.h" #include "vmel.h" @@ -222,7 +222,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 */ @@ -296,7 +296,7 @@ int chrtoblktbl[] = { /* 25 */ NODEV, /* 26 */ 10, /* xd */ }; -int nchrtoblktbl = sizeof(chrtoblktbl) / sizeof(chrtoblktbl[0]); +int nchrtoblktbl = nitems(chrtoblktbl); #include <dev/cons.h> |