diff options
author | Phil Davis <phil.davis@inf.org> | 2015-05-31 10:55:20 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-05-31 10:55:20 +0545 |
commit | 086cf944580b3a62a7c0e5dcbd2b92115cfb1334 (patch) | |
tree | 5043b938bdfd715daf231bfa3825d0b51c8c16f3 /etc/rc.initial.setlanip | |
parent | 5be3060472b257e0f171669b91d4e407960463e6 (diff) | |
download | pfsense-086cf944580b3a62a7c0e5dcbd2b92115cfb1334.zip pfsense-086cf944580b3a62a7c0e5dcbd2b92115cfb1334.tar.gz |
Code style bits and pieces from etc
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-x | etc/rc.initial.setlanip | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 62ca93b..b64dec8 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -113,8 +113,8 @@ function prompt_for_enable_dhcp_server($version = 4) { function get_interface_config_description($iface) { global $config; $c = $config['interfaces'][$iface]; - if (!$c) { - return null; + if (!$c) { + return null; } $if = $c['if']; $result = $if; @@ -158,10 +158,12 @@ if ($count > 1) { $intnum = $count; } -if ($intnum < 1) +if ($intnum < 1) { return; -if ($intnum > $count) +} +if ($intnum > $count) { return; +} $index = 1; foreach ($ifdescrs as $ifname => $ifdesc) { @@ -422,10 +424,12 @@ function console_configure_dhcpd($version = 4) { return 1; } -if (console_configure_dhcpd(4) == 0) +if (console_configure_dhcpd(4) == 0) { return 0; -if (console_configure_dhcpd(6) == 0) +} +if (console_configure_dhcpd(6) == 0) { return 0; +} //***************************************************************************** |