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], 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to