]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
One more clang-tidy case that did not happen locally: add a cast
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 25 Apr 2024 09:04:53 +0000 (11:04 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 6 May 2024 09:29:42 +0000 (11:29 +0200)
pdns/iputils.cc

index 9c02c8431fa4b06c1b67197d7da6c14934f1bdd5..bd05985cb21ba995fedda10afbdb05e850e295a5 100644 (file)
@@ -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<int>(timeout.tv_sec), timeout.tv_usec, &error, &disconnected);
+      int res = waitForRWData(sockfd, false, static_cast<int>(timeout.tv_sec), static_cast<int>(timeout.tv_usec), &error, &disconnected);
       if (res == 1) {
         if (error) {
           savederrno = 0;