Use nitems() from sys/param.h.
MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan)
This commit is contained in:
parent
09a47cc7e6
commit
d61c7fc026
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303542
@ -155,7 +155,7 @@ static suffixes_t suffixes[] = {
|
|||||||
#endif /* SMALL */
|
#endif /* SMALL */
|
||||||
#undef SUFFIX
|
#undef SUFFIX
|
||||||
};
|
};
|
||||||
#define NUM_SUFFIXES (sizeof suffixes / sizeof suffixes[0])
|
#define NUM_SUFFIXES (nitems(suffixes))
|
||||||
#define SUFFIX_MAXLEN 30
|
#define SUFFIX_MAXLEN 30
|
||||||
|
|
||||||
static const char gzip_version[] = "FreeBSD gzip 20150413";
|
static const char gzip_version[] = "FreeBSD gzip 20150413";
|
||||||
|
Loading…
Reference in New Issue
Block a user