From: Chris Hofstaedtler Date: Wed, 10 Aug 2022 12:53:02 +0000 (+0200) Subject: Rename g_DynListener to s_dynListener X-Git-Tag: rec-4.8.0-alpha1~20^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a270fbcb50335aaf1dd48e8754d513268633d1a8;p=thirdparty%2Fpdns.git Rename g_DynListener to s_dynListener --- diff --git a/pdns/auth-main.cc b/pdns/auth-main.cc index d23bfa3035..8f99619d6f 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 g_DynListener{nullptr}; +static std::unique_ptr s_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! - g_DynListener->go(); + s_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; - g_DynListener = std::make_unique(); // listens on stdin + s_dynListener = std::make_unique(); // listens on stdin } else { g_log << Logger::Warning << "This is a standalone pdns" << endl; if (::arg().mustDo("control-console")) - g_DynListener = std::make_unique(); + s_dynListener = std::make_unique(); else - g_DynListener = std::make_unique(g_programname); + s_dynListener = std::make_unique(g_programname); writePid(); }