Use nitems() from sys/param.h

Reviewed by:	jhb
MFC after:	3 weeks.
Differential Revision:	https://reviews.freebsd.org/D9941
This commit is contained in:
Marcelo Araujo 2017-03-11 04:00:27 +00:00
parent 4d5bf0bb88
commit 793128cc2c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315046

View file

@ -88,7 +88,7 @@ static const struct {
{"update", 1},
{"setdrv", 0}
};
static const int nopt = sizeof(opttbl) / sizeof(opttbl[0]);
static const int nopt = nitems(opttbl);
static const char fmt0[] = "# flag start chs type"
" end chs offset size\n";