mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
Use nitems() from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
adc9edf341
commit
21eacf9800
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298261
@ -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