Date: Sat, 30 Jul 2016 07:02:33 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r303542 - head/usr.bin/gzip Message-ID: <201607300702.u6U72XSd094722@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Sat Jul 30 07:02:33 2016 New Revision: 303542 URL: https://svnweb.freebsd.org/changeset/base/303542 Log: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) Modified: head/usr.bin/gzip/gzip.c Modified: head/usr.bin/gzip/gzip.c ============================================================================== --- head/usr.bin/gzip/gzip.c Sat Jul 30 06:35:49 2016 (r303541) +++ head/usr.bin/gzip/gzip.c Sat Jul 30 07:02:33 2016 (r303542) @@ -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";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607300702.u6U72XSd094722>