projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba476bb
)
compiler warning fixes
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 20 Nov 2012 19:57:18 +0000
(20:57 +0100)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/lib/ssh.c
b/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;
}