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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298261

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;