mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:43:31 +03:00
lib/v*: tidy up types and casts
Also add a couple of negative checks. Cherry-picked from #13489 Closes #13622
This commit is contained in:
parent
1d63e331de
commit
0887297100
20 changed files with 157 additions and 145 deletions
|
|
@ -740,7 +740,8 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data, bool *block)
|
|||
break;
|
||||
}
|
||||
|
||||
sshc->auth_methods = ssh_userauth_list(sshc->ssh_session, NULL);
|
||||
sshc->auth_methods =
|
||||
(unsigned int)ssh_userauth_list(sshc->ssh_session, NULL);
|
||||
if(sshc->auth_methods)
|
||||
infof(data, "SSH authentication methods available: %s%s%s%s",
|
||||
sshc->auth_methods & SSH_AUTH_METHOD_PUBLICKEY ?
|
||||
|
|
@ -2611,7 +2612,7 @@ static ssize_t sftp_recv(struct Curl_easy *data, int sockindex,
|
|||
|
||||
nread = sftp_async_read(conn->proto.sshc.sftp_file,
|
||||
mem, (uint32_t)len,
|
||||
conn->proto.sshc.sftp_file_index);
|
||||
(uint32_t)conn->proto.sshc.sftp_file_index);
|
||||
|
||||
myssh_block2waitfor(conn, (nread == SSH_AGAIN)?TRUE:FALSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue