diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-04-05 19:54:37 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-04-05 19:54:37 +0000 |
commit | b8b4ecf359b69b2f384dabb79edbf67040b9cf73 (patch) | |
tree | c0bc74d091e943b420aa575b7cb990372bb71432 /sys/dev/ic/ciss.c | |
parent | 115b944ccca42da53ff06c03476cac943041002e (diff) |
- use nitems() no binary change on amd64
"reads OK" claudio@
Diffstat (limited to 'sys/dev/ic/ciss.c')
-rw-r--r-- | sys/dev/ic/ciss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c index d35556a593a..5c98fb26e8e 100644 --- a/sys/dev/ic/ciss.c +++ b/sys/dev/ic/ciss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss.c,v 1.63 2010/09/20 06:17:49 krw Exp $ */ +/* $OpenBSD: ciss.c,v 1.64 2011/04/05 19:54:35 jasper Exp $ */ /* * Copyright (c) 2005,2006 Michael Shalayeff @@ -1031,7 +1031,7 @@ ciss_ioctl(struct device *dev, u_long cmd, caddr_t addr) break; bv->bv_percent = -1; bv->bv_seconds = 0; - if (ldstat->stat < sizeof(ciss_stat)/sizeof(ciss_stat[0])) + if (ldstat->stat < nitems(ciss_stat)) bv->bv_status = ciss_stat[ldstat->stat]; if (bv->bv_status == BIOC_SVREBUILD || bv->bv_status == BIOC_SVBUILDING) |