]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
network-functions.pl: Fix code formatting
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 11 Jan 2017 17:09:42 +0000 (17:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 11 Jan 2017 17:09:42 +0000 (17:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/network-functions.pl

index 5559be5143212604dd50705780a5208e77089f8f..db9d7dbfc30bb20c65d2b0588bee1b633b53604e 100644 (file)
@@ -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;
 }