diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2017-03-11 04:00:27 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2017-03-11 04:00:27 +0000 |
commit | 793128cc2c2df73008e4928b2441bc0513a9ff6e (patch) | |
tree | 8b2eb3e8167349264dd1a411a50d9e54693ad2b7 /usr.sbin/boot0cfg | |
parent | 4d5bf0bb885964ff869f3cb6845538649bddf1db (diff) | |
download | src-793128cc2c2df73008e4928b2441bc0513a9ff6e.tar.gz src-793128cc2c2df73008e4928b2441bc0513a9ff6e.zip |
Use nitems() from sys/param.h
Reviewed by: jhb
MFC after: 3 weeks.
Differential Revision: https://reviews.freebsd.org/D9941
Notes
Notes:
svn path=/head/; revision=315046
Diffstat (limited to 'usr.sbin/boot0cfg')
-rw-r--r-- | usr.sbin/boot0cfg/boot0cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c index c2cb91de4166..9670af95c9c5 100644 --- a/usr.sbin/boot0cfg/boot0cfg.c +++ b/usr.sbin/boot0cfg/boot0cfg.c @@ -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"; |