compiler warning fixes
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Nov 2012 19:57:18 +0000 (20:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Nov 2012 19:57:18 +0000 (20:57 +0100)
The conversions from ssize_t to int need to be typecasted.

lib/ssh.c

index d0dd2c746481671610d0640e12268dacaf3d4ff6..334e4b848a1b037493cc1cbbd346d5bb6d272eb6 100644 (file)
--- 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;
   }