Use nitems() from sys/param.h
Sponsored by: gandi.net (BSD Day Taiwan)
This commit is contained in:
parent
b81bbb0799
commit
28c7a3765f
@ -356,7 +356,7 @@ writefile(time_t runtimer, char queue)
|
||||
else
|
||||
{
|
||||
size_t i;
|
||||
for (i=0; i<sizeof(no_export)/sizeof(no_export[0]); i++)
|
||||
for (i = 0; i < nitems(no_export); i++)
|
||||
{
|
||||
export = export
|
||||
&& (strncmp(*atenv, no_export[i],
|
||||
|
Loading…
Reference in New Issue
Block a user