summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk_pc98
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-19 04:37:17 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-19 04:37:17 +0000
commita03092e883ad7a8d13705c4107ff00872219e053 (patch)
treeaeb3afeca698771ad6c6b3eade8cfa7fec359300 /sbin/fdisk_pc98
parent60e49e1bc5dfa7cec72b179c23d3d24912afac73 (diff)
downloadFreeBSD-src-a03092e883ad7a8d13705c4107ff00872219e053.zip
FreeBSD-src-a03092e883ad7a8d13705c4107ff00872219e053.tar.gz
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/fdisk_pc98')
-rw-r--r--sbin/fdisk_pc98/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fdisk_pc98/fdisk.c b/sbin/fdisk_pc98/fdisk.c
index 479e1e4..159a1f8 100644
--- a/sbin/fdisk_pc98/fdisk.c
+++ b/sbin/fdisk_pc98/fdisk.c
@@ -854,7 +854,7 @@ string(const char *str, char **ans)
static const char *
get_type(int type)
{
- int numentries = (sizeof(part_types)/sizeof(struct part_type));
+ int numentries = (nitems(part_types));
int counter = 0;
struct part_type *ptr = part_types;
OpenPOWER on IntegriCloud