From: Peter van Dijk Date: Tue, 22 Dec 2015 12:57:41 +0000 (+0100) Subject: Merge pull request #3029 from cmouse/cpp11-integer-conversions X-Git-Tag: dnsdist-1.0.0-alpha1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a39be95834438c54dba8ec45dcd95fef2da2102;p=pdns Merge pull request #3029 from cmouse/cpp11-integer-conversions Some quality improvements --- 7a39be95834438c54dba8ec45dcd95fef2da2102 diff --cc pdns/dnsdist.cc index 2b9d17d2f,8ebd3354c..5777d81b0 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@@ -635,8 -573,9 +635,8 @@@ tr case DNSAction::Action::HeaderModify: dh->qr=true; break; - case DNSAction::Action::Delay: - delayMsec = atoi(ruleresult.c_str()); // sorry + delayMsec = static_cast(pdns_stou(ruleresult)); // sorry break; case DNSAction::Action::Allow: case DNSAction::Action::None: