]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Remove unneeded 'static'
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jan 2021 08:54:18 +0000 (09:54 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 26 Mar 2021 08:52:33 +0000 (09:52 +0100)
(cherry picked from commit 3eff7a0d105c6fa6342a82a217e1f96217824dbf)

pdns/recursordist/test-syncres_cc.cc
pdns/reczones.cc

index 8c8de61843430e09162c603e8cfe2f7c2d2f32b9..f9e10d4b934f5c9ee6647ccbb20423e5a6a89804 100644 (file)
@@ -72,13 +72,13 @@ bool primeHints(void)
     arr.d_content = std::make_shared<ARecordContent>(ComboAddress(rootIps4[c - 'a']));
     vector<DNSRecord> aset;
     aset.push_back(arr);
-          s_RC->replace(time(nullptr), DNSName(templ), QType(QType::A), aset, vector<std::shared_ptr<RRSIGRecordContent>>(), vector<std::shared_ptr<DNSRecord>>(), true, g_rootdnsname); // auth, nuke it all
+    s_RC->replace(time(nullptr), DNSName(templ), QType(QType::A), aset, vector<std::shared_ptr<RRSIGRecordContent>>(), vector<std::shared_ptr<DNSRecord>>(), true, g_rootdnsname); // auth, nuke it all
     if (rootIps6[c - 'a'] != NULL) {
       aaaarr.d_content = std::make_shared<AAAARecordContent>(ComboAddress(rootIps6[c - 'a']));
 
       vector<DNSRecord> aaaaset;
       aaaaset.push_back(aaaarr);
-          s_RC->replace(time(nullptr), DNSName(templ), QType(QType::AAAA), aaaaset, vector<std::shared_ptr<RRSIGRecordContent>>(), vector<std::shared_ptr<DNSRecord>>(), true, g_rootdnsname);
+      s_RC->replace(time(nullptr), DNSName(templ), QType(QType::AAAA), aaaaset, vector<std::shared_ptr<RRSIGRecordContent>>(), vector<std::shared_ptr<DNSRecord>>(), true, g_rootdnsname);
     }
 
     nsset.push_back(nsrr);
index 65f641f597e98e95ae540e94c096579cc1e24900..992958b1d161bb4338dc3b1f090fcb5c12e50a66 100644 (file)
@@ -46,7 +46,7 @@ bool primeHints(void)
 {
   // prime root cache
   const vState validationState = vState::Insecure;
-  static const ComboAddress from("255.255.255.255");
+  const ComboAddress from("255.255.255.255");
   vector<DNSRecord> nsset;
   t_rootNSZones.clear();