From: Daniel Stenberg Date: Tue, 20 Nov 2012 19:57:18 +0000 (+0100) Subject: compiler warning fixes X-Git-Tag: curl-7_29_0~256 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfb67752fe41cacbb93fba8e17fd2574d09a023f;p=thirdparty%2Fcurl.git compiler warning fixes The conversions from ssize_t to int need to be typecasted. --- diff --git a/lib/ssh.c b/lib/ssh.c index d0dd2c7464..334e4b848a 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -2983,7 +2983,7 @@ static ssize_t scp_send(struct connectdata *conn, int sockindex, nwrite = 0; } else if(nwrite < LIBSSH2_ERROR_NONE) { - *err = libssh2_session_error_to_CURLE(nwrite); + *err = libssh2_session_error_to_CURLE((int)nwrite); nwrite = -1; } @@ -3131,7 +3131,7 @@ static ssize_t sftp_send(struct connectdata *conn, int sockindex, nwrite = 0; } else if(nwrite < LIBSSH2_ERROR_NONE) { - *err = libssh2_session_error_to_CURLE(nwrite); + *err = libssh2_session_error_to_CURLE((int)nwrite); nwrite = -1; }