]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix type qualifier warning 13614/head
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 13 Dec 2023 12:31:47 +0000 (13:31 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 13 Dec 2023 12:41:54 +0000 (13:41 +0100)
pdns/tcpreceiver.cc

index 30d99488a81c03e5ba01680e5b76e06f6d5d9051..e1a6990c9aba790201b3f282b4f83cf32928ef4a 100644 (file)
@@ -132,7 +132,7 @@ static int readnWithTimeout(int fd, void* buffer, unsigned int n, unsigned int i
     if (totalTimeout) {
       time_t now = time(nullptr);
       const auto elapsed = now - start;
-      if (elapsed >= static_cast<decltype(elapsed)>(remainingTotal)) {
+      if (elapsed >= static_cast<time_t>(remainingTotal)) {
         throw NetworkError("Timeout while reading data");
       }
       start = now;