mirror of
https://github.com/curl/curl.git
synced 2026-05-15 11:56:25 +03:00
compiler warning fixes
The conversions from ssize_t to int need to be typecasted.
This commit is contained in:
parent
ba476bb6d8
commit
cfb67752fe
1 changed files with 2 additions and 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue