From 1d4e61ced443349b67243574c74228ca0bb30250 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 7 Mar 2009 17:01:34 -0800 Subject: Avoid possible confusion over variable name 'usage' Having variable and function with same name is confusing. --- scripts/vyatta-qos.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/vyatta-qos.pl') diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl index 1404846..41f9174 100755 --- a/scripts/vyatta-qos.pl +++ b/scripts/vyatta-qos.pl @@ -286,8 +286,8 @@ sub delete_policy { my @inuse = interfaces_using($name); if ( @inuse ) { - foreach my $usage (@inuse) { - warn "QoS policy $name used by $usage\n"; + foreach my $used (@inuse) { + warn "QoS policy $name used by $used\n"; } # can't delete active policy die "Must delete QoS policy from interfaces before deleting rules\n"; -- cgit v1.2.3