summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-11 13:49:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-11 13:49:06 +0000
commit195f44c2da47b9f0df0461b593935d89619a5a0e (patch)
tree54fda57efd461170bfb2d33977b1747e27a1b7cd /perl-install/partition_table
parent2db19d156087ccce3037b2bd2da1042280e17904 (diff)
downloaddrakx-195f44c2da47b9f0df0461b593935d89619a5a0e.tar
drakx-195f44c2da47b9f0df0461b593935d89619a5a0e.tar.gz
drakx-195f44c2da47b9f0df0461b593935d89619a5a0e.tar.bz2
drakx-195f44c2da47b9f0df0461b593935d89619a5a0e.tar.xz
drakx-195f44c2da47b9f0df0461b593935d89619a5a0e.zip
- use "foreach" instead of "for" in list context
- use "for" instead of "foreach" when used a la C
Diffstat (limited to 'perl-install/partition_table')
-rw-r--r--perl-install/partition_table/sun.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table/sun.pm b/perl-install/partition_table/sun.pm
index 6944130dc..2302b905b 100644
--- a/perl-install/partition_table/sun.pm
+++ b/perl-install/partition_table/sun.pm
@@ -92,7 +92,7 @@ sub read($$) {
my @pt;
my @infos_up = unpack $format1 x $nb_primary, $info{infos};
my @partitions_up = unpack $format2 x $nb_primary, $info{partitions};
- for (0..$nb_primary-1) {
+ foreach (0..$nb_primary-1) {
my $h = { type => $infos_up[2 * $_], flag => $infos_up[1 + 2 * $_],
start_cylinder => $partitions_up[2 * $_], size => $partitions_up[1 + 2 * $_] };
$h->{start} = $sector + $h->{start_cylinder} * $hd->cylinder_size();