summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table
diff options
context:
space:
mode:
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};