From: Chris Hofstaedtler Date: Wed, 3 Aug 2022 19:52:58 +0000 (+0200) Subject: auth: rename dl to g_DynListener X-Git-Tag: rec-4.8.0-alpha1~20^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa6051682015d107eabef8d0c7ba1ea2e264b7b8;p=thirdparty%2Fpdns.git auth: rename dl to g_DynListener --- diff --git a/pdns/auth-main.cc b/pdns/auth-main.cc index 65fb75b6c2..dbd7564012 100644 --- a/pdns/auth-main.cc +++ b/pdns/auth-main.cc @@ -120,7 +120,7 @@ AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads AuthQueryCache QC; AuthZoneCache g_zoneCache; std::unique_ptr DP{nullptr}; -static std::unique_ptr dl{nullptr}; +static std::unique_ptr g_DynListener{nullptr}; CommunicatorClass Communicator; static double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0}; static unique_ptr s_tcpNameserver{nullptr}; @@ -845,7 +845,7 @@ static void mainthread() } // NOW SAFE TO CREATE THREADS! - dl->go(); + g_DynListener->go(); if (::arg().mustDo("webserver") || ::arg().mustDo("api")) webserver.go(); @@ -1393,15 +1393,15 @@ int main(int argc, char** argv) if (isGuarded(argv)) { g_log << Logger::Warning << "This is a guarded instance of pdns" << endl; - dl = make_unique(); // listens on stdin + g_DynListener = std::make_unique(); // listens on stdin } else { g_log << Logger::Warning << "This is a standalone pdns" << endl; if (::arg().mustDo("control-console")) - dl = make_unique(); + g_DynListener = std::make_unique(); else - dl = std::make_unique(s_programname); + g_DynListener = std::make_unique(s_programname); writePid(); }