From: Chris Hofstaedtler Date: Wed, 3 Aug 2022 19:32:07 +0000 (+0200) Subject: auth: make dl (DynListener) static X-Git-Tag: rec-4.8.0-alpha1~20^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c7bf657d95dbd286e0d82baf8038e35af1e9aed;p=thirdparty%2Fpdns.git auth: make dl (DynListener) static --- diff --git a/pdns/auth-main.cc b/pdns/auth-main.cc index 04e64f937f..0124abcda5 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}; -std::unique_ptr dl{nullptr}; +static std::unique_ptr dl{nullptr}; CommunicatorClass Communicator; shared_ptr N; static double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0}; diff --git a/pdns/auth-main.hh b/pdns/auth-main.hh index c31c6a191f..8305b18aa3 100644 --- a/pdns/auth-main.hh +++ b/pdns/auth-main.hh @@ -41,7 +41,6 @@ extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads extern AuthQueryCache QC; extern std::unique_ptr DP; -extern std::unique_ptr dl; extern CommunicatorClass Communicator; extern std::shared_ptr N; extern vector> g_udpReceivers;