From 5c7bf657d95dbd286e0d82baf8038e35af1e9aed Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Wed, 3 Aug 2022 21:32:07 +0200 Subject: [PATCH] auth: make dl (DynListener) static --- pdns/auth-main.cc | 2 +- pdns/auth-main.hh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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; -- 2.47.2