diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-18 20:54:59 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-18 20:54:59 +0000 |
commit | fed979ad6dcaa60e5c6502072ec80e0edc07a8de (patch) | |
tree | 23c667258d502f05277ed731614e2069119b6e5b /dhcp_wizard | |
parent | 5ac685ad8c457a062302db020583478bd1b2f907 (diff) | |
download | drakwizard-fed979ad6dcaa60e5c6502072ec80e0edc07a8de.tar drakwizard-fed979ad6dcaa60e5c6502072ec80e0edc07a8de.tar.gz drakwizard-fed979ad6dcaa60e5c6502072ec80e0edc07a8de.tar.bz2 drakwizard-fed979ad6dcaa60e5c6502072ec80e0edc07a8de.tar.xz drakwizard-fed979ad6dcaa60e5c6502072ec80e0edc07a8de.zip |
(do_it) simplify (check returns either 0 or a define value)
Diffstat (limited to 'dhcp_wizard')
-rwxr-xr-x | dhcp_wizard/Dhcp.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm index dc983512..e8411f52 100755 --- a/dhcp_wizard/Dhcp.pm +++ b/dhcp_wizard/Dhcp.pm @@ -190,7 +190,7 @@ sub do_it { } my $wiz_ip_net = "$1.$2.$3.0" if $wiz_ip_server =~ /(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/; my $err = check(); - return $err if $err != 0; + return $err if $err; my $wiz_ip_range1 = $o->{var}{ip1}; my $wiz_ip_range2 = $o->{var}{ip2}; my $wiz_ip_netmask = $wiz->{net}->itf_get("NETMASK"); |