Use nitems() from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
adc9edf341
commit
21eacf9800
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user