mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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 */
|
||||
#undef SUFFIX
|
||||
};
|
||||
#define NUM_SUFFIXES (sizeof suffixes / sizeof suffixes[0])
|
||||
#define NUM_SUFFIXES (nitems(suffixes))
|
||||
#define SUFFIX_MAXLEN 30
|
||||
|
||||
static const char gzip_version[] = "FreeBSD gzip 20150413";
|
||||
|
|
Loading…
Reference in a new issue