1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +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:
Marcelo Araujo 2017-03-10 04:24:21 +00:00
parent 1bb0ddf99d
commit a0fb90916a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314987

View File

@ -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);