1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

lib: silence conversion warnings

Closes https://github.com/curl/curl/pull/4444
This commit is contained in:
Marcel Raad 2019-10-01 00:24:50 +02:00
parent 68b0aac2f8
commit 69d95b6d4c
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
2 changed files with 2 additions and 2 deletions

View File

@ -749,7 +749,7 @@ clean_up:
conn->created) / 1000;
/* the alarm period is counted in even number of seconds */
unsigned long alarm_set = prev_alarm - elapsed_secs;
unsigned long alarm_set = (unsigned long)(prev_alarm - elapsed_secs);
if(!alarm_set ||
((alarm_set >= 0x80000000) && (prev_alarm < 0x80000000)) ) {

View File

@ -2822,7 +2822,7 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
fd_write = sock;
/* wait for the socket to become ready */
(void)Curl_socket_check(fd_read, CURL_SOCKET_BAD, fd_write,
left>1000?1000:left); /* ignore result */
left>1000?1000:(time_t)left);
}
#endif