summaryrefslogtreecommitdiff
path: root/lib/select.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-15 10:27:20 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-23 10:08:59 +0200
commita78bb569fb1cf5d67193fe5f1811ec8ecf1dea33 (patch)
treee39b6e3ca6e1927f5639d8c64efd1a3edd6ddcbc /lib/select.c
parentc0e139a60db68034e04362694290f7cf422eb924 (diff)
downloadcurl-a78bb569fb1cf5d67193fe5f1811ec8ecf1dea33.tar.gz
select: make Curl_socket_check take timediff_t timeout
Coverity found CID 1461718: Integer handling issues (CONSTANT_EXPRESSION_RESULT) "timeout_ms > 9223372036854775807L" is always false regardless of the values of its operands. This occurs as the logical second operand of "||".
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/select.c b/lib/select.c
index 857e7f698..b4ac53fb1 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -201,7 +201,7 @@ int Curl_select(curl_socket_t maxfd,
int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */
curl_socket_t readfd1,
curl_socket_t writefd, /* socket to write to */
- time_t timeout_ms) /* milliseconds to wait */
+ timediff_t timeout_ms) /* milliseconds to wait */
{
#ifdef HAVE_POLL_FINE
struct pollfd pfd[3];