svn commit: r330637 - stable/11/usr.bin/at
Eitan Adler
eadler at FreeBSD.org
Thu Mar 8 07:17:21 UTC 2018
Author: eadler
Date: Thu Mar 8 07:17:20 2018
New Revision: 330637
URL: https://svnweb.freebsd.org/changeset/base/330637
Log:
MFC r303540:
Use nitems() from sys/param.h
Sponsored by: gandi.net (BSD Day Taiwan)
Modified:
stable/11/usr.bin/at/at.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/at/at.c
==============================================================================
--- stable/11/usr.bin/at/at.c Thu Mar 8 07:16:53 2018 (r330636)
+++ stable/11/usr.bin/at/at.c Thu Mar 8 07:17:20 2018 (r330637)
@@ -359,7 +359,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],
More information about the svn-src-stable-11
mailing list