mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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