From 83eb3e84f25e86d305bb6f729c09920d6c89de3d Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Wed, 15 Feb 2023 16:05:12 +0100 Subject: [PATCH] Cleanup pdnsutil.cc --- pdns/pdnsutil.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.47.2