Use nitems() from sys/param.h

Sponsored by:	gandi.net (BSD Day Taiwan)
This commit is contained in:
araujo 2016-07-30 06:32:18 +00:00
parent b81bbb0799
commit 28c7a3765f

View File

@ -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],