diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-19 04:57:57 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-19 04:57:57 +0000 |
commit | d6cc304ba6d23235c0aaebe0b2e6bbf49f5ea7d4 (patch) | |
tree | eabf47091587a3849b70ecba40939b6a1eba464c /sbin/newfs_msdos | |
parent | f3d1782e9ef259f21f76edc94e70164aafd0a4b5 (diff) | |
download | FreeBSD-src-d6cc304ba6d23235c0aaebe0b2e6bbf49f5ea7d4.zip FreeBSD-src-d6cc304ba6d23235c0aaebe0b2e6bbf49f5ea7d4.tar.gz |
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r-- | sbin/newfs_msdos/mkfs_msdos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/mkfs_msdos.c b/sbin/newfs_msdos/mkfs_msdos.c index 0f72a85..90d7df8 100644 --- a/sbin/newfs_msdos/mkfs_msdos.c +++ b/sbin/newfs_msdos/mkfs_msdos.c @@ -760,7 +760,7 @@ getstdfmt(const char *fmt, struct bpb *bpb) { u_int x, i; - x = sizeof(stdfmt) / sizeof(stdfmt[0]); + x = nitems(stdfmt); for (i = 0; i < x && strcmp(fmt, stdfmt[i].name); i++); if (i == x) { warnx("%s: unknown standard format", fmt); |