diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-19 04:37:17 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-19 04:37:17 +0000 |
commit | a03092e883ad7a8d13705c4107ff00872219e053 (patch) | |
tree | aeb3afeca698771ad6c6b3eade8cfa7fec359300 /sbin/fdisk_pc98 | |
parent | 60e49e1bc5dfa7cec72b179c23d3d24912afac73 (diff) | |
download | FreeBSD-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.c | 2 |
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; |