From eb20f481b8706ced2fcf045b4ababf1eef2fec87 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 1 Nov 2023 15:55:57 +0100 Subject: [PATCH] Tidy --- ext/lmdb-safe/lmdb-safe.cc | 2 +- pdns/dnsscope.cc | 24 +++++++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ext/lmdb-safe/lmdb-safe.cc b/ext/lmdb-safe/lmdb-safe.cc index 6d4f8c8198..67292869ef 100644 --- a/ext/lmdb-safe/lmdb-safe.cc +++ b/ext/lmdb-safe/lmdb-safe.cc @@ -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. diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index a16b0de4ca..6922869a9b 100644 --- a/pdns/dnsscope.cc +++ b/pdns/dnsscope.cc @@ -200,15 +200,25 @@ try bool doIPv6 = g_vm["ipv6"].as(); 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 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 rcodes_t; rcodes_t rcodes; -- 2.47.2