From: Michael Tremer Date: Wed, 11 Jan 2017 17:09:42 +0000 (+0000) Subject: network-functions.pl: Fix code formatting X-Git-Tag: v2.19-core109^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f23ce8e53d5b016cbb05e24566739983c89894a;p=ipfire-2.x.git network-functions.pl: Fix code formatting Signed-off-by: Michael Tremer --- diff --git a/config/cfgroot/network-functions.pl b/config/cfgroot/network-functions.pl index 5559be5143..db9d7dbfc3 100644 --- a/config/cfgroot/network-functions.pl +++ b/config/cfgroot/network-functions.pl @@ -102,16 +102,19 @@ sub bin2ip($) { return $address; } -#Takes two network addresses and compares them against each other -#returns true if equal or false if not -sub network_equal{ +# Takes two network addresses, compares them against each other +# and returns true if equal or false if not +sub network_equal { my $network1 = shift; my $network2 = shift; + my $bin1 = &network2bin($network1); my $bin2 = &network2bin($network2); - if ($bin1 eq $bin2){ + + if ($bin1 eq $bin2) { return 1; } + return 0; }