From: Fred Morcos Date: Wed, 15 Feb 2023 15:05:12 +0000 (+0100) Subject: Cleanup pdnsutil.cc X-Git-Tag: dnsdist-1.8.0-rc1~3^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83eb3e84f25e86d305bb6f729c09920d6c89de3d;p=thirdparty%2Fpdns.git Cleanup pdnsutil.cc --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 1db2c559f3..f1458844d6 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1120,7 +1120,7 @@ static int read1char(){ return c; } -static int clearZone(DNSSECKeeper& /* dk */, const DNSName &zone) { +static int clearZone(const DNSName &zone) { UeberBackend B; DomainInfo di; @@ -1785,7 +1785,7 @@ static bool testAlgorithms() return DNSCryptoKeyEngine::testAll(); } -static void testSpeed(DNSSECKeeper& /* dk */, const DNSName& zone, const string& /* remote */, int cores) +static void testSpeed(const DNSName& zone, const string& /* remote */, int cores) { DNSResourceRecord rr; rr.qname=DNSName("blah")+zone; @@ -2814,7 +2814,7 @@ try cerr << "Syntax: pdnsutil test-speed numcores [signing-server]"< 3) ? cmds.at(3) : "", pdns::checked_stoi(cmds.at(2))); + testSpeed(DNSName(cmds.at(1)), (cmds.size() > 3) ? cmds.at(3) : "", pdns::checked_stoi(cmds.at(2))); } else if (cmds.at(0) == "verify-crypto") { if(cmds.size() != 2) { @@ -3131,7 +3131,7 @@ try if (cmds.at(1) == ".") cmds.at(1).clear(); - return clearZone(dk, DNSName(cmds.at(1))); + return clearZone(DNSName(cmds.at(1))); } else if (cmds.at(0) == "list-keys") { if(cmds.size() > 2) {