diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-07-30 07:02:33 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-07-30 07:02:33 +0000 |
commit | d61c7fc02640cabf813c2fcc2bf5e3f78d7342a6 (patch) | |
tree | 0f0a691a5fd2828142f381d17fbd648b9264839c /usr.bin/gzip | |
parent | 09a47cc7e6d2c083b2e3a1ffb413b0d37f4d7f36 (diff) | |
download | src-d61c7fc02640cabf813c2fcc2bf5e3f78d7342a6.tar.gz src-d61c7fc02640cabf813c2fcc2bf5e3f78d7342a6.zip |
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Sponsored by: gandi.net (BSD Day Taiwan)
Notes
Notes:
svn path=/head/; revision=303542
Diffstat (limited to 'usr.bin/gzip')
-rw-r--r-- | usr.bin/gzip/gzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c index 8f22abcf4c61..4a649b8f44f3 100644 --- a/usr.bin/gzip/gzip.c +++ b/usr.bin/gzip/gzip.c @@ -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"; |