svn commit: r298262 - head/sbin/camcontrol
Marcelo Araujo
araujo at FreeBSD.org
Tue Apr 19 11:12:59 UTC 2016
Author: araujo
Date: Tue Apr 19 11:12:57 2016
New Revision: 298262
URL: https://svnweb.freebsd.org/changeset/base/298262
Log:
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Modified:
head/sbin/camcontrol/progress.c
Modified: head/sbin/camcontrol/progress.c
==============================================================================
--- head/sbin/camcontrol/progress.c Tue Apr 19 09:43:51 2016 (r298261)
+++ head/sbin/camcontrol/progress.c Tue Apr 19 11:12:57 2016 (r298262)
@@ -56,7 +56,7 @@ static const char * const suffixes[] = {
"EiB", /* 2^60 Exbibyte */
};
-#define NSUFFIXES (sizeof(suffixes) / sizeof(suffixes[0]))
+#define NSUFFIXES nitems(suffixes)
#define SECSPERHOUR (60 * 60)
#define DEFAULT_TTYWIDTH 80
More information about the svn-src-head
mailing list