From 9bdd8bd507eeb21268a974e4c979cd34fe770b03 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 6 Aug 2002 11:55:38 +0000 Subject: make perl_checker happy --- perl-install/detect_devices.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 5f2e88749..e3b053fa0 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -690,7 +690,7 @@ sub getIPsInLocalNetworks { # Read the output of "ifconfig" to determine the broadcast addresses of # the local networks my $dev_is_localnet = 0; - my @local_bcasts = (); + my @local_bcasts; my $current_bcast = ""; if (-x "/sbin/ifconfig") { @@ -727,7 +727,7 @@ sub getIPsInLocalNetworks { for my $bcast (@local_bcasts) { local *F; open F, "ping -w 1 -b -n $bcast | cut -f 4 -d \" \" | sed s/:// | egrep \"^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\" | uniq |" or next; - while () {chomp; push @addresses, $_;} + while () { chomp; push @addresses, $_ } close F; } @@ -742,7 +742,7 @@ sub whatNetPrinter { my @res; # Which ports should be scanned? - my @portstoscan = (); + my @portstoscan; if ($smb) { push @portstoscan, "139"; } -- cgit v1.2.1