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=root # mail all msgs to root
|
||||||
mail-failure=root # mail failed update msgs to root
|
mail-failure=root # mail failed update msgs to root
|
||||||
pid=@runstatedir@/ddclient.pid # record PID in file.
|
pid=@runstatedir@/ddclient.pid # record PID in file.
|
||||||
# postscript=script # run script after updating. The
|
# postscript=script # run script after updating. The new IP is
|
||||||
# new IP is added as argument.
|
# added as argument.
|
||||||
#
|
#
|
||||||
#use=watchguard-soho, fw=192.168.111.1:80 # via Watchguard's SOHO FW
|
#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
|
#use=netopia-r910, fw=192.168.111.1:80 # via Netopia R910 FW
|
||||||
|
|
|
@ -1838,6 +1838,7 @@ sub _read_config {
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
## init_config -
|
## init_config -
|
||||||
######################################################################
|
######################################################################
|
||||||
|
@ -2020,18 +2021,13 @@ sub init_config {
|
||||||
sub process_args {
|
sub process_args {
|
||||||
my @spec = ();
|
my @spec = ();
|
||||||
my $usage = "";
|
my $usage = "";
|
||||||
|
|
||||||
for (@_) {
|
for (@_) {
|
||||||
if (ref $_) {
|
if (ref $_) {
|
||||||
my ($key, $specifier, $arg_usage) = @$_;
|
my ($key, $specifier, $arg_usage) = @$_;
|
||||||
my $value = default($key);
|
my $value = default($key);
|
||||||
|
|
||||||
push @spec, $key . $specifier;
|
push @spec, $key . $specifier;
|
||||||
|
|
||||||
$opt{$key} //= undef;
|
$opt{$key} //= undef;
|
||||||
|
|
||||||
next unless $arg_usage;
|
next unless $arg_usage;
|
||||||
|
|
||||||
$usage .= " $arg_usage";
|
$usage .= " $arg_usage";
|
||||||
if (defined($value) && $value ne '') {
|
if (defined($value) && $value ne '') {
|
||||||
$usage .= " (default: ";
|
$usage .= " (default: ";
|
||||||
|
|
Loading…
Reference in a new issue