summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-06 11:55:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-06 11:55:38 +0000
commit9bdd8bd507eeb21268a974e4c979cd34fe770b03 (patch)
tree5ca845865db5350f1460505b2855bb419f1b59f0 /perl-install/detect_devices.pm
parent38c93685494c0ace5fce6ab92fb52176ed9cf872 (diff)
downloaddrakx-backup-do-not-use-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar
drakx-backup-do-not-use-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar.gz
drakx-backup-do-not-use-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar.bz2
drakx-backup-do-not-use-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar.xz
drakx-backup-do-not-use-9bdd8bd507eeb21268a974e4c979cd34fe770b03.zip
make perl_checker happy
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm6
1 files changed, 3 insertions, 3 deletions
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 (<F>) {chomp; push @addresses, $_;}
+ while (<F>) { 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";
}