Whitespace fixes
This commit is contained in:
parent
5620127c71
commit
9c5160a514
3 changed files with 118 additions and 122 deletions
|
@ -26,8 +26,8 @@ syslog=yes # log update msgs to syslog
|
|||
mail=root # mail all msgs to root
|
||||
mail-failure=root # mail failed update msgs to root
|
||||
pid=@runstatedir@/ddclient.pid # record PID in file.
|
||||
# postscript=script # run script after updating. The
|
||||
# new IP is added as argument.
|
||||
# postscript=script # run script after updating. The new IP is
|
||||
# added as argument.
|
||||
#
|
||||
#use=watchguard-soho, fw=192.168.111.1:80 # via Watchguard's SOHO FW
|
||||
#use=netopia-r910, fw=192.168.111.1:80 # via Netopia R910 FW
|
||||
|
|
|
@ -1838,6 +1838,7 @@ sub _read_config {
|
|||
|
||||
return $content;
|
||||
}
|
||||
|
||||
######################################################################
|
||||
## init_config -
|
||||
######################################################################
|
||||
|
@ -2020,18 +2021,13 @@ sub init_config {
|
|||
sub process_args {
|
||||
my @spec = ();
|
||||
my $usage = "";
|
||||
|
||||
for (@_) {
|
||||
if (ref $_) {
|
||||
my ($key, $specifier, $arg_usage) = @$_;
|
||||
my $value = default($key);
|
||||
|
||||
push @spec, $key . $specifier;
|
||||
|
||||
$opt{$key} //= undef;
|
||||
|
||||
next unless $arg_usage;
|
||||
|
||||
$usage .= " $arg_usage";
|
||||
if (defined($value) && $value ne '') {
|
||||
$usage .= " (default: ";
|
||||
|
|
Loading…
Reference in a new issue