mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
Use nitems() from sys/param.h.
Reviewed by: asomers MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9944
This commit is contained in:
parent
1bb0ddf99d
commit
a0fb90916a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314987
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user