Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2016 06:32:19 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303540 - head/usr.bin/at
Message-ID:  <201607300632.u6U6WJc5081530@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Sat Jul 30 06:32:18 2016
New Revision: 303540
URL: https://svnweb.freebsd.org/changeset/base/303540

Log:
  Use nitems() from sys/param.h
  
  Sponsored by:	gandi.net (BSD Day Taiwan)

Modified:
  head/usr.bin/at/at.c

Modified: head/usr.bin/at/at.c
==============================================================================
--- head/usr.bin/at/at.c	Sat Jul 30 06:19:34 2016	(r303539)
+++ head/usr.bin/at/at.c	Sat Jul 30 06:32:18 2016	(r303540)
@@ -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], 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607300632.u6U6WJc5081530>