From d10601de11d287cf8a44a043ed31d658cf219a51 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 27 May 2020 12:39:01 -0400 Subject: [PATCH] Delete redundant `$opt{'daemon'}` processing The stuff done in this deleted block is already done in `check_value`. --- ddclient | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ddclient b/ddclient index 1bdf5e7..2710fc0 100755 --- a/ddclient +++ b/ddclient @@ -867,7 +867,7 @@ do { usage("invalid argument '-use %s'; possible values are:\n%s", $opt{'use'}, join("\n", ip_strategies_usage())) unless exists $ip_strategies{lc opt('use')}; - $daemon = $opt{'daemon'}; + $daemon = opt('daemon'); $daemon = 0 if opt('force'); update_nics(); @@ -1282,13 +1282,6 @@ sub init_config { $opt{'timeout'} = 0 if opt('timeout') < 0; - ## only set $opt{'daemon'} if it has been explicitly passed in - if (define($opt{'daemon'}, $globals{'daemon'}, 0)) { - $opt{'daemon'} = interval(opt('daemon')); - $opt{'daemon'} = minimum('daemon') - if ($opt{'daemon'} < minimum('daemon')); - } - ## define or modify host options specified on the command-line if (exists $opt{'options'} && defined $opt{'options'}) { ## collect cmdline configuration options.