]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
longer variable name for clang-tidy 13951/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 21 Mar 2024 13:14:21 +0000 (14:14 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 21 Mar 2024 13:14:21 +0000 (14:14 +0100)
pdns/pdnsutil.cc

index 169ff9d7b71a778ef250b952444044cd4d9b70c7..98cbf55a8fde161641822664a3e9c4db7bdc784d 100644 (file)
@@ -2031,7 +2031,7 @@ static int setZoneKind(const DNSName& zone, const DomainInfo::DomainKind kind)
   return EXIT_SUCCESS;
 }
 
-static bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = false) // NOLINT(readability-function-cognitive-complexity)
+static bool showZone(DNSSECKeeper& dnsseckeeper, const DNSName& zone, bool exportDS = false) // NOLINT(readability-function-cognitive-complexity)
 {
   UeberBackend B("default");
   DomainInfo di;
@@ -2081,7 +2081,7 @@ static bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = fals
     }
   }
 
-  if(!dk.isSecuredZone(zone)) {
+  if(!dnsseckeeper.isSecuredZone(zone)) {
     auto &outstream = (exportDS ? cerr : cout);
     outstream << "Zone is not actively secured" << endl;
     if (exportDS) {
@@ -2093,9 +2093,9 @@ static bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = fals
 
   NSEC3PARAMRecordContent ns3pr;
   bool narrow = false;
-  bool haveNSEC3=dk.getNSEC3PARAM(zone, &ns3pr, &narrow);
+  bool haveNSEC3=dnsseckeeper.getNSEC3PARAM(zone, &ns3pr, &narrow);
 
-  DNSSECKeeper::keyset_t keyset=dk.getKeys(zone);
+  DNSSECKeeper::keyset_t keyset=dnsseckeeper.getKeys(zone);
 
   if (!exportDS) {
     std::vector<std::string> meta;
@@ -2124,7 +2124,7 @@ static bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = fals
 
   }
 
-  if (dk.isPresigned(zone)) {
+  if (dnsseckeeper.isPresigned(zone)) {
     if (!exportDS) {
       cout <<"Zone is presigned"<<endl;
     }