Use nitems() from sys/param.h.

Reviewed by:	ngie
Differential Revision:	https://reviews.freebsd.org/D9943
This commit is contained in:
Marcelo Araujo 2017-03-12 03:43:28 +00:00
parent 57f942af81
commit 21a973f499
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315102

View File

@ -143,7 +143,7 @@ static const struct {
{ "hpfs", &OIDX_hrFSHPFS_c },
{ "smbfs", &OIDX_hrFSOther_c },
};
#define N_FS_TYPE_MAP (sizeof(fs_type_map) / sizeof(fs_type_map[0]))
#define N_FS_TYPE_MAP nitems(fs_type_map)
/**
* Create an entry into the FS table and an entry in the map (if needed).