From: Lowell Mower Date: Wed, 14 Mar 2018 12:58:23 +0000 (-0400) Subject: move constant in countServersUp() signature X-Git-Tag: dnsdist-1.3.0~44^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6327%2Fhead;p=thirdparty%2Fpdns.git move constant in countServersUp() signature --- diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index 199b0ce054..2c76ca263f 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -647,7 +647,7 @@ struct ServerPool std::shared_ptr packetCache{nullptr}; std::shared_ptr policy{nullptr}; - const size_t countServersUp() { + size_t countServersUp() const { size_t upFound = 0; for (const auto& server : servers) { if (std::get<1>(server)->isUp() ) {