diff options
Diffstat (limited to 'perl-install/resize_fat/dir_entry.pm')
-rw-r--r-- | perl-install/resize_fat/dir_entry.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/resize_fat/dir_entry.pm b/perl-install/resize_fat/dir_entry.pm index b39c72094..27d2ea33f 100644 --- a/perl-install/resize_fat/dir_entry.pm +++ b/perl-install/resize_fat/dir_entry.pm @@ -1,4 +1,4 @@ -package resize_fat::dir_entry; # $Id$ +package resize_fat::dir_entry; use diagnostics; use strict; @@ -6,7 +6,7 @@ use strict; my $DELETED_FLAG = 0xe5; -my $READ_ONLY_ATTR = 0x01; +my $_READ_ONLY_ATTR = 0x01; my $HIDDEN_ATTR = 0x02; my $SYSTEM_ATTR = 0x04; my $VOLUME_LABEL_ATTR = 0x08; @@ -21,7 +21,7 @@ sub get_cluster($) { } sub set_cluster($$) { my ($entry, $val) = @_; - $entry->{first_cluster} = $val & (1 << 16) - 1; + $entry->{first_cluster} = $val & ((1 << 16) - 1); $entry->{first_cluster_high} = $val >> 16 if $resize_fat::isFAT32; } @@ -61,7 +61,7 @@ sub is_special_entry($) { #- return true if entry has been modified #- curr_dir_name is added to contains current directory name, "" for root. sub remap { - my ($curr_dir_name, $entry) = @_; + my ($_curr_dir_name, $entry) = @_; is_special_entry($entry) and return; |