diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 21:22:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 21:22:16 +0000 |
commit | 868f8ef6acc35e7f402f082fb8398c22bbd012b5 (patch) | |
tree | 97085cdd1bd58872e282d0d5675bec7dd2c1af0f /perl-install/devices.pm | |
parent | 987b89760dd7090ecf49bd225c634bcf7503d18c (diff) | |
download | drakx-868f8ef6acc35e7f402f082fb8398c22bbd012b5.tar drakx-868f8ef6acc35e7f402f082fb8398c22bbd012b5.tar.gz drakx-868f8ef6acc35e7f402f082fb8398c22bbd012b5.tar.bz2 drakx-868f8ef6acc35e7f402f082fb8398c22bbd012b5.tar.xz drakx-868f8ef6acc35e7f402f082fb8398c22bbd012b5.zip |
remove unused variables or rename them with an underscore (eg: $o becomes $_o)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 3d97a13b4..f6a22c5f1 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -12,7 +12,7 @@ sub size { my ($dev) = @_; sysopen(my $F, $dev, 0) or log::l("open $dev: $!"), return 0; - my $valid_offset = sub { sysseek($F, $_[0], 0) && sysread($F, my $a, 1) }; + my $valid_offset = sub { sysseek($F, $_[0], 0) && sysread($F, my $_a, 1) }; #- first try getting the size nicely if (my $size = c::total_sectors(fileno $F)) { @@ -41,7 +41,7 @@ sub find_free_loop { foreach (0..7) { my $dev = make("loop$_"); sysopen(my $F, $dev, 2) or next; - !ioctl($F, c::LOOP_GET_STATUS(), my $tmp) && $! == 6 or next; #- 6 == ENXIO + !ioctl($F, c::LOOP_GET_STATUS(), my $_tmp) && $! == 6 or next; #- 6 == ENXIO return $dev; } die "no free loop found"; |