summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-18 20:50:46 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-18 20:50:46 +0000
commitb9626dc4aaf5dfce1b8cf01dee5facb4b5791df8 (patch)
tree52e617ab3c7e8667df5af4fa2864c4d0b3ad594a /dhcp_wizard
parent9e1b1f92fd64c8a148d523a0bdeb675b596b4d33 (diff)
downloaddrakwizard-b9626dc4aaf5dfce1b8cf01dee5facb4b5791df8.tar
drakwizard-b9626dc4aaf5dfce1b8cf01dee5facb4b5791df8.tar.gz
drakwizard-b9626dc4aaf5dfce1b8cf01dee5facb4b5791df8.tar.bz2
drakwizard-b9626dc4aaf5dfce1b8cf01dee5facb4b5791df8.tar.xz
drakwizard-b9626dc4aaf5dfce1b8cf01dee5facb4b5791df8.zip
style: '}' just before 'else/elsif'
Diffstat (limited to 'dhcp_wizard')
-rwxr-xr-xdhcp_wizard/Dhcp.pm20
1 files changed, 14 insertions, 6 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm
index 72a413f1..055dd055 100755
--- a/dhcp_wizard/Dhcp.pm
+++ b/dhcp_wizard/Dhcp.pm
@@ -142,18 +142,26 @@ $o->{pages} = {
sub compute_range {
my ($d, $s) = @_;
my $n;
- if ($d <= 64) { $n = "65" }
- elsif ($d <= 128) { $n = "129" }
- else { $n = "1" }
+ if ($d <= 64) {
+ $n = "65";
+ } elsif ($d <= 128) {
+ $n = "129";
+ } else {
+ $n = "1";
+ }
"$s.$n";
}
sub compute_range2 {
my ($d, $s) = @_;
my $n;
- if ($d <= 128) { $n = "254" }
- elsif ($d > 192) { $n = "192" }
- else { $n = "128" }
+ if ($d <= 128) {
+ $n = "254";
+ } elsif ($d > 192) {
+ $n = "192";
+ } else {
+ $n = "128";
+ }
"$s.$n";
}