mirror of
https://github.com/curl/curl.git
synced 2026-07-29 01:33:07 +03:00
Curl_timeleft: change return type to timediff_t
returning 'time_t' is problematic when that type is unsigned and we return values less than zero to signal "already expired", used in several places in the code. Closes #2021
This commit is contained in:
parent
9dfc541dd7
commit
0d85eed3df
9 changed files with 19 additions and 18 deletions
|
|
@ -2833,7 +2833,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
|
|||
|
||||
while((sshc->state != SSH_STOP) && !result) {
|
||||
bool block;
|
||||
time_t left = 1000;
|
||||
timediff_t left = 1000;
|
||||
struct curltime now = Curl_now();
|
||||
|
||||
result = ssh_statemach_act(conn, &block);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue