Use nitems() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-19 09:43:51 +00:00
parent adc9edf341
commit 21eacf9800

View File

@ -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;