Date: Thu, 8 Mar 2018 07:17:20 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r330637 - stable/11/usr.bin/at Message-ID: <201803080717.w287HKkm055080@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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],
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803080717.w287HKkm055080>