summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-03 13:12:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-03 13:12:13 +0000
commit23c259c90cbed0280c9e23b3c9763363c148c472 (patch)
tree608f1f62a585f39703a8f42d83447dfcf045a826 /perl-install/detect_devices.pm
parent5d3903d31de512391136aa05e77de530baceb64a (diff)
downloaddrakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.gz
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.bz2
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.xz
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.zip
do not use "local my $F, ...", use "local(my $F, ...) instead
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index fdac50818..f2bd17601 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -615,7 +615,7 @@ sub whatUsbport() {
my $realport = devices::make($port);
next if !$realport;
next if ! -r $realport;
- open my $PORT, $realport or next;
+ open(my $PORT, $realport) or next;
my $idstr = "";
# Calculation of IOCTL function 0x84005001 (to get device ID
# string):
@@ -735,7 +735,7 @@ sub hasMousePS2 {
}
sub raidAutoStartIoctl {
- sysopen my $F, devices::make("md0"), 2 or return;
+ sysopen(my $F, devices::make("md0"), 2) or return;
ioctl $F, 2324, 0;
}