diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-14 17:36:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-14 17:36:32 +0000 |
commit | 78e8097c578fb334c7440a5459fdb7aecc827feb (patch) | |
tree | 365a303dd0143c940451e55df0316b3aaf6c0a67 /perl-install/partition_table | |
parent | 0321ff25b57d94626c9a5c2d02fbdb5448474fc6 (diff) | |
download | drakx-backup-do-not-use-78e8097c578fb334c7440a5459fdb7aecc827feb.tar drakx-backup-do-not-use-78e8097c578fb334c7440a5459fdb7aecc827feb.tar.gz drakx-backup-do-not-use-78e8097c578fb334c7440a5459fdb7aecc827feb.tar.bz2 drakx-backup-do-not-use-78e8097c578fb334c7440a5459fdb7aecc827feb.tar.xz drakx-backup-do-not-use-78e8097c578fb334c7440a5459fdb7aecc827feb.zip |
- add/remove spaces to make perl_checker happy
- remove redundant parentheses
- add some parentheses for clarity
Diffstat (limited to 'perl-install/partition_table')
-rw-r--r-- | perl-install/partition_table/dos.pm | 2 | ||||
-rw-r--r-- | perl-install/partition_table/mac.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table/dos.pm b/perl-install/partition_table/dos.pm index 3518e6738..b5f16df87 100644 --- a/perl-install/partition_table/dos.pm +++ b/perl-install/partition_table/dos.pm @@ -42,7 +42,7 @@ sub CHS2rawCHS { $h = $hd->{geom}{heads} - 1; $s = $hd->{geom}{sectors}; } - ($c & 0xff, $h, $s | ($c >> 2 & 0xc0)); + ($c & 0xff, $h, $s | (($c >> 2) & 0xc0)); } # returns (cylinder, head, sector) diff --git a/perl-install/partition_table/mac.pm b/perl-install/partition_table/mac.pm index 7fd442d8f..cf5ca8a37 100644 --- a/perl-install/partition_table/mac.pm +++ b/perl-install/partition_table/mac.pm @@ -206,7 +206,7 @@ sub write($$$;$) { # Find the partition map. my @partstowrite; my $part = $pt->[0]; - (defined $part->{isMap}) or die "the first partition is not the partition map"; + defined $part->{isMap} or die "the first partition is not the partition map"; push @partstowrite, $part; # Now go thru the partitions, sort and fill gaps. |