From f25dd2b7df3d091d9601b92adbf55bc1d91c1f6a Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Wed, 13 Dec 2023 13:31:47 +0100 Subject: [PATCH] Fix type qualifier warning --- pdns/tcpreceiver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2