aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/boot0cfg
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2017-03-11 04:00:27 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2017-03-11 04:00:27 +0000
commit793128cc2c2df73008e4928b2441bc0513a9ff6e (patch)
tree8b2eb3e8167349264dd1a411a50d9e54693ad2b7 /usr.sbin/boot0cfg
parent4d5bf0bb885964ff869f3cb6845538649bddf1db (diff)
downloadsrc-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.c2
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";