From: Fred Morcos Date: Wed, 13 Dec 2023 12:31:47 +0000 (+0100) Subject: Fix type qualifier warning X-Git-Tag: dnsdist-1.9.0-alpha4~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13614%2Fhead;p=thirdparty%2Fpdns.git Fix type qualifier warning --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 30d99488a8..e1a6990c9a 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -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(remainingTotal)) { + if (elapsed >= static_cast(remainingTotal)) { throw NetworkError("Timeout while reading data"); } start = now;