summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-08-17 20:00:42 -1000
committerSam Bingner <sam@bingner.com>2019-08-18 12:07:59 -1000
commitd4baec84f5a6a8484b7b7c284184721c748b6dc2 (patch)
tree7f0a1ecc106a52716d64c4fcc5b83f06ddbcefa0 /methods/connect.cc
parent23dbbe24511b0a5db2ef47a3846cd59b7fb9a106 (diff)
Cleanup patches for 1.8.2
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index 1d6f8919d..0e01e5ca4 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -273,8 +273,8 @@ static ResultState WaitAndCheckErrors(std::list<Connection> &Conns, std::unique_
struct timeval tv = {
// Split our millisecond timeout into seconds and microseconds
- .tv_sec = TimeoutMsec / 1000,
- .tv_usec = (TimeoutMsec % 1000) * 1000,
+ .tv_sec = static_cast<time_t>(TimeoutMsec / 1000),
+ .tv_usec = static_cast<suseconds_t>((TimeoutMsec % 1000) * 1000),
};
// We will return once we have no more connections, a time out, or