From 2733dbf7f1ce5743e6e727ee6b55bda4e3e6585e Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Wed, 3 Aug 2022 20:52:11 +0200 Subject: [PATCH] auth: move s_starttime from dns.hh to auth-main.hh Variable storage is in auth-main.cc, and dns.hh is used by all products. --- pdns/auth-main.hh | 1 + pdns/dns.hh | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pdns/auth-main.hh b/pdns/auth-main.hh index 7993831973..f373b6cd5a 100644 --- a/pdns/auth-main.hh +++ b/pdns/auth-main.hh @@ -35,6 +35,7 @@ #include "tcpreceiver.hh" #include "dnsseckeeper.hh" +extern time_t s_starttime; extern ArgvMap theArg; extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads diff --git a/pdns/dns.hh b/pdns/dns.hh index f0b204ee23..6f326a0eb8 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -253,8 +253,6 @@ inline uint16_t * getFlagsFromDNSHeader(struct dnsheader * dh) #define FLAGS_CD_OFFSET (12) #endif -extern time_t s_starttime; - uint32_t hashQuestion(const uint8_t* packet, uint16_t len, uint32_t init, bool& ok); struct TSIGTriplet -- 2.47.2