diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-11 13:49:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-11 13:49:06 +0000 |
commit | 195f44c2da47b9f0df0461b593935d89619a5a0e (patch) | |
tree | 54fda57efd461170bfb2d33977b1747e27a1b7cd /perl-install/resize_fat | |
parent | 2db19d156087ccce3037b2bd2da1042280e17904 (diff) | |
download | drakx-backup-do-not-use-195f44c2da47b9f0df0461b593935d89619a5a0e.tar drakx-backup-do-not-use-195f44c2da47b9f0df0461b593935d89619a5a0e.tar.gz drakx-backup-do-not-use-195f44c2da47b9f0df0461b593935d89619a5a0e.tar.bz2 drakx-backup-do-not-use-195f44c2da47b9f0df0461b593935d89619a5a0e.tar.xz drakx-backup-do-not-use-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')
-rw-r--r-- | perl-install/resize_fat/fat.pm | 2 |
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; } |