Merge pull request #228 from dkerr64/cleanup

Add missing semicolons and fix incorrect debug message
This commit is contained in:
Richard Hansen 2020-07-03 17:34:30 -04:00 committed by GitHub
commit f527b7487c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -961,6 +961,7 @@ sub update_nics {
}
write_cache(opt('cache'));
}
######################################################################
## unlink_pid()
######################################################################
@ -1090,7 +1091,7 @@ sub parse_assignment {
} elsif ($c eq "\\") {
$escape = 1;
} elsif ($quote && $c eq $quote) {
$quote = ''
$quote = '';
} elsif (!$quote && $c =~ /[\'\"]/) {
$quote = $c;
} elsif (!$quote && $c =~ /^[\n\s,]/) {
@ -1458,6 +1459,7 @@ sub process_args {
}
return $usage;
}
######################################################################
## test_possible_ip - print possible IPs
######################################################################
@ -1545,7 +1547,7 @@ sub load_file {
} else {
debug("Load failed from %s (%s)", $file, $!);
}
return $buffer
return $buffer;
}
######################################################################
## save_file
@ -2337,6 +2339,7 @@ sub group_hosts_by {
}
return %groups;
}
######################################################################
## encode_www_form_urlencoded
######################################################################
@ -2535,6 +2538,7 @@ sub nic_updateable {
return $update;
}
######################################################################
## header_ok
######################################################################
@ -4941,7 +4945,7 @@ EoEXAMPLE
######################################################################
sub nic_dondominio_update {
debug("\nnic_duckdns_update -------------------");
debug("\nnic_dondominio_update -------------------");
## update each configured host
## should improve to update in one pass