]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix formatting and a clang-tidy issue 13283/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 22 Sep 2023 08:43:25 +0000 (10:43 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 22 Sep 2023 08:43:25 +0000 (10:43 +0200)
pdns/recursordist/rec-taskqueue.hh
pdns/recursordist/recpacketcache.cc

index 73eedeecede7ced32c4132f39d2634b5fd541fb2..13658055c59d46b2411056ced74bed36ac91f892 100644 (file)
@@ -57,4 +57,3 @@ uint64_t getAlmostExpiredTasksRun();
 uint64_t getAlmostExpiredTaskExceptions();
 
 bool taskQTypeIsSupported(QType qtype);
-
index 77dc63e1e12684d334f37ececf1f6e053b44cf07..9f7591b8d9cb198aca1da50842bfecc7d3cd0369 100644 (file)
@@ -129,7 +129,7 @@ bool RecursorPacketCache::checkResponseMatches(MapCombo::LockedContent& shard, s
       if (s_refresh_ttlperc > 0 && !iter->d_submitted && taskQTypeIsSupported(qtype)) {
         const dnsheader_aligned header(iter->d_packet.data());
         const auto* headerPtr = header.get();
-        if (headerPtr->rcode == RCode::NoError) {
+        if (headerPtr->rcode == static_cast<unsigned>(RCode::NoError)) {
           const uint32_t deadline = iter->getOrigTTL() * s_refresh_ttlperc / 100;
           const bool almostExpired = ttl <= deadline;
           if (almostExpired) {