mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
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:
parent
4d5bf0bb88
commit
793128cc2c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315046
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue