]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Tidy 13442/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 1 Nov 2023 14:55:57 +0000 (15:55 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 1 Nov 2023 14:55:57 +0000 (15:55 +0100)
ext/lmdb-safe/lmdb-safe.cc
pdns/dnsscope.cc

index 6d4f8c81988a107f221dddd2ab1e9e09053825ac..67292869efea591cbce9a86100806cc432411a8a 100644 (file)
@@ -78,7 +78,7 @@ namespace LMDBLS {
 
 #endif /* #ifndef DNSDIST */
 
-MDBDbi::MDBDbi(MDB_env* /* env */, MDB_txn* txn, const string_view dbname, int flags)
+MDBDbi::MDBDbi(MDB_env* /* env */, MDB_txn* txn, const string_view dbname, int flags) : d_dbi(-1)
 {
   // A transaction that uses this function must finish (either commit or abort) before any other transaction in the process may use this function.
 
index a16b0de4cafca7f031a616f31971592133597eb0..6922869a9bb705c1e729ad00eb8c3c68598fd363 100644 (file)
@@ -200,15 +200,25 @@ try
   bool doIPv6 = g_vm["ipv6"].as<bool>();
   bool doServFailTree = g_vm.count("servfail-tree");
   bool noservfailstats = g_vm.count("no-servfail-stats");
-  int dnserrors=0, parsefail=0;
+  int dnserrors = 0;
+  int parsefail = 0;
   typedef map<uint32_t,uint32_t> cumul_t;
   cumul_t cumul;
-  unsigned int untracked=0, nonRDQueries=0, queries=0;
-  unsigned int ipv4DNSPackets=0, ipv6DNSPackets=0, fragmented=0, rdNonRAAnswers=0;
-  unsigned int answers=0, nonDNSIP=0, rdFilterMismatch=0;
-  unsigned int dnssecOK=0, edns=0;
-  unsigned int dnssecCD=0, dnssecAD=0;
-  unsigned int reuses=0;
+  unsigned int untracked = 0;
+  unsigned int nonRDQueries = 0;
+  unsigned int queries = 0;
+  unsigned int ipv4DNSPackets = 0;
+  unsigned int ipv6DNSPackets = 0;
+  unsigned int fragmented = 0;
+  unsigned int rdNonRAAnswers = 0;
+  unsigned int answers = 0;
+  unsigned int nonDNSIP = 0;
+  unsigned int rdFilterMismatch = 0;
+  unsigned int dnssecOK = 0;
+  unsigned int edns = 0;
+  unsigned int dnssecCD = 0;
+  unsigned int dnssecAD = 0;
+  unsigned int reuses = 0;
   typedef map<uint16_t,uint32_t> rcodes_t;
   rcodes_t rcodes;