From: Otto Moerbeek Date: Tue, 2 Aug 2022 08:19:58 +0000 (+0200) Subject: Some more `auto` instead of explicit types X-Git-Tag: auth-4.8.0-alpha0~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11780%2Fhead;p=thirdparty%2Fpdns.git Some more `auto` instead of explicit types --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 70b8e3ac51..1533b5f269 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -123,13 +123,13 @@ private: void submit(int arg, const struct timeval& last, const struct timeval& now) { d_last = arg; - float val = static_cast(arg); + auto val = static_cast(arg); if (d_val == 0) { d_val = val; } else { - float diff = makeFloat(last - now); - float factor = expf(diff) / 2.0f; // might be '0.5', or 0.0001 + auto diff = makeFloat(last - now); + auto factor = expf(diff) / 2.0f; // might be '0.5', or 0.0001 d_val = (1.0f - factor) * val + factor * d_val; } }