From: Otto Moerbeek Date: Thu, 25 Apr 2024 09:04:53 +0000 (+0200) Subject: One more clang-tidy case that did not happen locally: add a cast X-Git-Tag: rec-5.1.0-alpha1~19^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85e6cf61fd28617fab9e1f1cb520414f13512676;p=thirdparty%2Fpdns.git One more clang-tidy case that did not happen locally: add a cast --- diff --git a/pdns/iputils.cc b/pdns/iputils.cc index 9c02c8431f..bd05985cb2 100644 --- a/pdns/iputils.cc +++ b/pdns/iputils.cc @@ -77,7 +77,7 @@ int SConnectWithTimeout(int sockfd, const ComboAddress& remote, const struct tim /* we wait until the connection has been established */ bool error = false; bool disconnected = false; - int res = waitForRWData(sockfd, false, static_cast(timeout.tv_sec), timeout.tv_usec, &error, &disconnected); + int res = waitForRWData(sockfd, false, static_cast(timeout.tv_sec), static_cast(timeout.tv_usec), &error, &disconnected); if (res == 1) { if (error) { savederrno = 0;