summaryrefslogtreecommitdiffstats
path: root/perl-install/resize_fat/fat.pm
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/resize_fat/fat.pm
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/resize_fat/fat.pm')
-rw-r--r--perl-install/resize_fat/fat.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/resize_fat/fat.pm b/perl-install/resize_fat/fat.pm
index 27252ef2b..bb762e28e 100644
--- a/perl-install/resize_fat/fat.pm
+++ b/perl-install/resize_fat/fat.pm
@@ -104,7 +104,7 @@ sub endianness($$) {
sub get_free($) {
my ($fs) = @_;
- foreach (my $i = 0; $i < $fs->{nb_clusters}; $i++) {
+ for (my $i = 0; $i < $fs->{nb_clusters}; $i++) {
my $cluster = ($i + $fs->{last_free_cluster} - 2) % $fs->{nb_clusters} + 2;
is_available(&next($fs, $cluster)) and return $fs->{last_free_cluster} = $cluster;
}