aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/part/g_part_bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/part/g_part_bsd.c')
-rw-r--r--sys/geom/part/g_part_bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part_bsd.c b/sys/geom/part/g_part_bsd.c
index 5a5eabd31937..eaa5394b7c7c 100644
--- a/sys/geom/part/g_part_bsd.c
+++ b/sys/geom/part/g_part_bsd.c
@@ -141,7 +141,7 @@ bsd_parse_type(const char *type, uint8_t *fstype)
return (0);
}
for (i = 0;
- i < sizeof(bsd_alias_match) / sizeof(bsd_alias_match[0]); i++) {
+ i < nitems(bsd_alias_match); i++) {
alias = g_part_alias_name(bsd_alias_match[i].alias);
if (strcasecmp(type, alias) == 0) {
*fstype = bsd_alias_match[i].type;