summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/common.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index a5716d98f..f1b3d3981 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -27,20 +27,17 @@ our $SECTORSIZE = 512;
#- Functions
#-#####################################################################################
-sub P {
- my ($s_singular, $s_plural, $nb, @para) = @_;
- sprintf(translate($s_singular, $s_plural, $nb), @para);
-}
-
sub N {
my ($s, @para) = @_;
sprintf(translate($s), @para);
}
-sub N_ { $_[0] }
+sub N_ { $_[0] }
-sub makedev { ($_[0] << 8) | $_[1] }
-sub unmakedev { $_[0] >> 8, $_[0] & 0xff }
+sub P {
+ my ($s_singular, $s_plural, $nb, @para) = @_;
+ sprintf(translate($s_singular, $s_plural, $nb), @para);
+}
sub translate_real {
my ($s, $o_plural, $o_nb) = @_;
@@ -112,6 +109,9 @@ sub nonblock {
fcntl($F, c::F_SETFL(), fcntl($F, c::F_GETFL(), 0) | c::O_NONBLOCK()) or die "cannot fcntl F_SETFL: $!";
}
+sub makedev { ($_[0] << 8) | $_[1] }
+sub unmakedev { $_[0] >> 8, $_[0] & 0xff }
+
#- return a size in sector
#- ie MB(1) is 2048 sectors, which is 1MB
sub MB {