summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-14 23:40:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-14 23:40:08 +0000
commita4e14fec987246dde7e9f757a9ae9e1834080d33 (patch)
tree5b86b4cf5005887e22276a5693b0f548a877e3e9 /perl-install/partition_table
parent78e8097c578fb334c7440a5459fdb7aecc827feb (diff)
downloaddrakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar.gz
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar.bz2
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar.xz
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.zip
make perl_checker happy
Diffstat (limited to 'perl-install/partition_table')
-rw-r--r--perl-install/partition_table/gpt.pm2
-rw-r--r--perl-install/partition_table/mac.pm2
-rw-r--r--perl-install/partition_table/raw.pm2
3 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm
index 01de8f8a7..425a34e39 100644
--- a/perl-install/partition_table/gpt.pm
+++ b/perl-install/partition_table/gpt.pm
@@ -81,7 +81,7 @@ sub crc32 {
my $crc = 0xFFFFFFFF;
foreach (unpack "C*", $buffer) {
my $subcrc = ($crc ^ $_) & 0xFF;
- for (my $j = 8; $j > 0; $j--){
+ for (my $j = 8; $j > 0; $j--) {
my $b = $subcrc & 1;
$subcrc = ($subcrc >> 1) & 0x7FFFFFFF;
$subcrc = $subcrc ^ 0xEDB88320 if $b;
diff --git a/perl-install/partition_table/mac.pm b/perl-install/partition_table/mac.pm
index cf5ca8a37..d455584cf 100644
--- a/perl-install/partition_table/mac.pm
+++ b/perl-install/partition_table/mac.pm
@@ -128,7 +128,7 @@ sub read($$) {
c::lseek_sector(fileno(F), $sector, 512) or die "reading of partition in sector $sector failed";
my @pt;
- for (my $i = 0;$i < $partmapsize;$i++) {
+ for (my $i = 0; $i < $partmapsize; $i++) {
my $part;
sysread F, $part, psizeof($p_format) or die "error while reading partition info in sector $sector";
diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm
index d9a672bce..0456c8c26 100644
--- a/perl-install/partition_table/raw.pm
+++ b/perl-install/partition_table/raw.pm
@@ -146,7 +146,7 @@ sub zero_MBR {
my $type = arch() =~ /ia64/ ? 'gpt' : arch() eq "alpha" ? "bsd" : arch() =~ /^sparc/ ? "sun" : arch() eq "ppc" ? "mac" : "dos";
#- override standard mac type on PPC for IBM machines to dos
$type = "dos" if arch() =~ /ppc/ && detect_devices::get_mac_model() =~ /^IBM/;
- require("partition_table/$type.pm");
+ require "partition_table/$type.pm";
bless $hd, "partition_table::$type";
$hd->{primary} = $hd->clear_raw();
delete $hd->{extended};