diff options
Diffstat (limited to 'lib/telnet.c')
-rw-r--r-- | lib/telnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index a7bed3da1..a5f87d81d 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -1561,7 +1561,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done) if(data->set.timeout) { now = Curl_tvnow(); - if(Curl_tvdiff(now, conn->created) >= data->set.timeout) { + if(Curl_timediff(now, conn->created) >= data->set.timeout) { failf(data, "Time-out"); result = CURLE_OPERATION_TIMEDOUT; keepon = FALSE; @@ -1679,7 +1679,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done) if(data->set.timeout) { now = Curl_tvnow(); - if(Curl_tvdiff(now, conn->created) >= data->set.timeout) { + if(Curl_timediff(now, conn->created) >= data->set.timeout) { failf(data, "Time-out"); result = CURLE_OPERATION_TIMEDOUT; keepon = FALSE; |