From 6da4085e48b90670d12464f08113bc2f58779035 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 Mar 2014 13:25:59 +0000 Subject: [PATCH] ssh: fix compiler warning converting ssize_t to int --- lib/ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ssh.c b/lib/ssh.c index 56209af8a..ac4409401 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -3134,7 +3134,7 @@ static ssize_t sftp_recv(struct connectdata *conn, int sockindex, } else if(nread < 0) { - *err = libssh2_session_error_to_CURLE(nread); + *err = libssh2_session_error_to_CURLE((int)nread); } return nread; }