Use nitems() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
araujo 2016-04-19 09:43:51 +00:00
parent dced14581e
commit 400b711861

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;