diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-06 11:55:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-06 11:55:38 +0000 |
commit | 9bdd8bd507eeb21268a974e4c979cd34fe770b03 (patch) | |
tree | 5ca845865db5350f1460505b2855bb419f1b59f0 /perl-install/detect_devices.pm | |
parent | 38c93685494c0ace5fce6ab92fb52176ed9cf872 (diff) | |
download | drakx-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar drakx-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar.gz drakx-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar.bz2 drakx-9bdd8bd507eeb21268a974e4c979cd34fe770b03.tar.xz drakx-9bdd8bd507eeb21268a974e4c979cd34fe770b03.zip |
make perl_checker happy
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 6 |
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"; } |