Use nitems() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-19 11:12:57 +00:00
parent 21eacf9800
commit 286d197142

View File

@ -56,7 +56,7 @@ static const char * const suffixes[] = {
"EiB", /* 2^60 Exbibyte */
};
#define NSUFFIXES (sizeof(suffixes) / sizeof(suffixes[0]))
#define NSUFFIXES nitems(suffixes)
#define SECSPERHOUR (60 * 60)
#define DEFAULT_TTYWIDTH 80