diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-11-20 20:57:18 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-11-20 20:57:18 +0100 |
commit | cfb67752fe41cacbb93fba8e17fd2574d09a023f (patch) | |
tree | 68b5f029cf395ef8b0c5e548464fc6aa78834e39 /lib | |
parent | ba476bb6d81258486712e01db5be905b2032811b (diff) |
compiler warning fixes
The conversions from ssize_t to int need to be typecasted.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |