summaryrefslogtreecommitdiff
path: root/usr.bin/gzip
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-07-30 07:02:33 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-07-30 07:02:33 +0000
commitd61c7fc02640cabf813c2fcc2bf5e3f78d7342a6 (patch)
tree0f0a691a5fd2828142f381d17fbd648b9264839c /usr.bin/gzip
parent09a47cc7e6d2c083b2e3a1ffb413b0d37f4d7f36 (diff)
downloadsrc-test-d61c7fc02640cabf813c2fcc2bf5e3f78d7342a6.tar.gz
src-test-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c
index 8f22abcf4c61c..4a649b8f44f3b 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";