]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
clang-tidy the previous clang-tidy run 15421/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 11 Apr 2025 16:37:01 +0000 (18:37 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 11 Apr 2025 16:37:01 +0000 (18:37 +0200)
modules/geoipbackend/geoipbackend.cc
modules/geoipbackend/geoipbackend.hh

index a608f1b4a8e2c86dfda0b9240fff005032212878..42968225f4afe73c337ee8068fed589eafd1f9d6 100644 (file)
@@ -903,7 +903,7 @@ void GeoIPBackend::rediscover(string* /* status */)
   reload();
 }
 
-bool GeoIPBackend::getDomainInfo(const ZoneName& domain, DomainInfo& di, bool /* getSerial */)
+bool GeoIPBackend::getDomainInfo(const ZoneName& domain, DomainInfo& info, bool /* getSerial */)
 {
   ReadLock rl(&s_state_lock);
 
@@ -911,11 +911,11 @@ bool GeoIPBackend::getDomainInfo(const ZoneName& domain, DomainInfo& di, bool /*
     if (dom.domain == domain) {
       SOAData sd;
       this->getSOA(domain, sd);
-      di.id = dom.id;
-      di.zone = dom.domain;
-      di.serial = sd.serial;
-      di.kind = DomainInfo::Native;
-      di.backend = this;
+      info.id = dom.id;
+      info.zone = dom.domain;
+      info.serial = sd.serial;
+      info.kind = DomainInfo::Native;
+      info.backend = this;
       return true;
     }
   }
index 0203d4bf41b46768e91336503e0bc5d5b63aa2e6..a60c785cd73ef71b614f683070d83210bb6b84b3 100644 (file)
@@ -69,7 +69,7 @@ public:
   bool get(DNSResourceRecord& r) override;
   void reload() override;
   void rediscover(string* status = nullptr) override;
-  bool getDomainInfo(const ZoneName& domain, DomainInfo& di, bool getSerial = true) override;
+  bool getDomainInfo(const ZoneName& domain, DomainInfo& info, bool getSerial = true) override;
   void getAllDomains(vector<DomainInfo>* domains, bool getSerial, bool include_disabled) override;
 
   // dnssec support