summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-07 17:01:34 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-07 17:01:34 -0800
commit1d4e61ced443349b67243574c74228ca0bb30250 (patch)
treee42d0a4e7074c979aaf5c40919a835bf5480bb7c
parentb671ecf9d866f850467b1d065a46d3b31ce9a177 (diff)
downloadvyatta-cfg-qos-1d4e61ced443349b67243574c74228ca0bb30250.tar.gz
vyatta-cfg-qos-1d4e61ced443349b67243574c74228ca0bb30250.zip
Avoid possible confusion over variable name 'usage'
Having variable and function with same name is confusing.
-rwxr-xr-xscripts/vyatta-qos.pl4
1 files changed, 2 insertions, 2 deletions
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";