svn commit: r298261 - head/sbin/setkey
Marcelo Araujo
araujo at FreeBSD.org
Tue Apr 19 09:43:53 UTC 2016
Author: araujo
Date: Tue Apr 19 09:43:51 2016
New Revision: 298261
URL: https://svnweb.freebsd.org/changeset/base/298261
Log:
Use nitems() from sys/param.h.
MFC after: 2 weeks.
Modified:
head/sbin/setkey/test-policy.c
Modified: head/sbin/setkey/test-policy.c
==============================================================================
--- head/sbin/setkey/test-policy.c Tue Apr 19 09:42:48 2016 (r298260)
+++ head/sbin/setkey/test-policy.c Tue Apr 19 09:43:51 2016 (r298261)
@@ -76,7 +76,7 @@ main()
int i;
char *buf;
- for (i = 0; i < sizeof(requests)/sizeof(requests[0]); i++) {
+ for (i = 0; i < nitems(requests); i++) {
printf("* requests:[%s]\n", requests[i]);
if ((buf = setpolicy(requests[i])) == NULL)
continue;
More information about the svn-src-head
mailing list