]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: fix gcc warning, no prevous declaration for ‘void carbonDumpThread()’ 11932/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 12 Sep 2022 07:22:21 +0000 (09:22 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 12 Sep 2022 07:32:34 +0000 (09:32 +0200)
pdns/auth-main.cc
pdns/auth-main.hh

index c07f45deeb8bf38fa623b2df2b11759d9a11ff11..f974da3002e97681ba75d39edb531646292c278c 100644 (file)
@@ -130,9 +130,6 @@ static vector<std::shared_ptr<UDPNameserver>> s_udpReceivers;
 NetmaskGroup g_proxyProtocolACL;
 size_t g_proxyProtocolMaximumSize;
 
-// Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function.
-void carbonDumpThread();
-
 ArgvMap& arg()
 {
   return theArg;
index bfc53cf9ef70102509090435170921c80b8b70e0..764a643a7299cea6144089eeb32a93b0948ec725 100644 (file)
@@ -42,6 +42,7 @@ extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all
 extern AuthQueryCache QC;
 extern std::unique_ptr<DNSProxy> DP;
 extern CommunicatorClass Communicator;
+void carbonDumpThread(); // Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function.
 extern bool g_anyToTcp;
 extern bool g_8bitDNS;
 extern NetmaskGroup g_proxyProtocolACL;