Use nitems() from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
21eacf9800
commit
286d197142
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user