summaryrefslogtreecommitdiffstats
path: root/usr.sbin/camdd/camdd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/camdd/camdd.c')
-rw-r--r--usr.sbin/camdd/camdd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/camdd/camdd.c b/usr.sbin/camdd/camdd.c
index 05225f6..9da57b0 100644
--- a/usr.sbin/camdd/camdd.c
+++ b/usr.sbin/camdd/camdd.c
@@ -1004,8 +1004,7 @@ camdd_probe_tape(int fd, char *filename, uint64_t *max_iosize,
goto bailout;
}
- for (i = 0; i < sizeof(req_status_items) /
- sizeof(req_status_items[0]); i++) {
+ for (i = 0; i < nitems(req_status_items); i++) {
char *name;
name = __DECONST(char *, req_status_items[i].name);
OpenPOWER on IntegriCloud