From 69d95b6d4c3dce64e58bd36d998ee10ae4da0f34 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 1 Oct 2019 00:24:50 +0200 Subject: lib: silence conversion warnings Closes https://github.com/curl/curl/pull/4444 --- lib/hostip.c | 2 +- lib/vssh/libssh2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hostip.c b/lib/hostip.c index bd532a891..d4e8f9366 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -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)) ) { diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 6a6793aa3..c71cfbc9f 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -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 -- cgit v1.2.1