Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 20:05:51 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196552 - head/etc/rc.d
Message-ID:  <200908252005.n7PK5psT038209@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Aug 25 20:05:51 2009
New Revision: 196552
URL: http://svn.freebsd.org/changeset/base/196552

Log:
  Localize 'e'.
  
  Submitted by:	dougb

Modified:
  head/etc/rc.d/static_arp

Modified: head/etc/rc.d/static_arp
==============================================================================
--- head/etc/rc.d/static_arp	Tue Aug 25 19:30:32 2009	(r196551)
+++ head/etc/rc.d/static_arp	Tue Aug 25 20:05:51 2009	(r196552)
@@ -41,10 +41,11 @@ stop_cmd="static_arp_stop"
 
 static_arp_start()
 {
+	local e arp_args
+
 	if [ -n "${static_arp_pairs}" ]; then
 		echo -n 'Binding static ARP pair(s):'
 		for e in ${static_arp_pairs}; do
-			local arp_args
 			echo -n " ${e}"
 			eval arp_args=\$static_arp_${e}
 			arp -S ${arp_args} >/dev/null 2>&1
@@ -55,10 +56,11 @@ static_arp_start()
 
 static_arp_stop()
 {
+	local e arp_args
+
 	if [ -n "${static_arp_pairs}" ]; then
 		echo -n 'Unbinding static ARP pair(s):'
 		for e in ${static_arp_pairs}; do
-			local arp_args
 			echo -n " ${e}"
 			eval arp_args=\$static_arp_${e}
 			arp -d ${arp_args%%[ 	]*} > /dev/null 2>&1



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