]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
syncres.cc:5161:45: error: declaration of ‘DoTStatus& status’ shadows a parameter... 13434/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 24 Nov 2023 09:06:32 +0000 (10:06 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 24 Nov 2023 09:06:32 +0000 (10:06 +0100)
pdns/recursordist/syncres.cc

index 6243d3723f3505141c324e923803f87f1640570c..1515067efbb46cd47fc707f89f773ae4ed3b364a 100644 (file)
@@ -5158,7 +5158,7 @@ static void updateDoTStatus(ComboAddress address, DoTStatus::Status status, time
   auto iter = lock->d_map.find(address);
   if (iter != lock->d_map.end()) {
     iter->d_status = status;
-    lock->d_map.modify(iter, [=](DoTStatus& status) { status.d_ttd = time; });
+    lock->d_map.modify(iter, [=](DoTStatus& statusToModify) { statusToModify.d_ttd = time; });
     if (updateBusy) {
       --lock->d_numBusy;
     }