Fix build warnings found with printf checking of ssh_set_error().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@405 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
родитель
2aeeb5a518
Коммит
8253e2170e
@ -838,7 +838,9 @@ static int kbdauth_info_get(SSH_SESSION *session){
|
||||
free(instruction);
|
||||
nprompts=ntohl(nprompts);
|
||||
if(nprompts>KBDINT_MAX_PROMPT){
|
||||
ssh_set_error(session,SSH_FATAL,"Too much prompt asked from server: %lu(0x%.8lx)",nprompts,nprompts);
|
||||
ssh_set_error(session, SSH_FATAL,
|
||||
"Too much prompt asked from server: %u (0x%.4x)",
|
||||
nprompts, nprompts);
|
||||
leave_function();
|
||||
return SSH_AUTH_ERROR;
|
||||
}
|
||||
|
@ -79,7 +79,8 @@ static int packet_read2(SSH_SESSION *session){
|
||||
len=packet_decrypt_len(session,buffer);
|
||||
buffer_add_data(session->in_buffer,buffer,blocksize);
|
||||
if(len> MAX_PACKET_LEN){
|
||||
ssh_set_error(session,SSH_FATAL,"read_packet(): Packet len too high(%uld %.8lx)",len,len);
|
||||
ssh_set_error(session, SSH_FATAL,
|
||||
"read_packet(): Packet len too high(%u %.4x)", len, len);
|
||||
leave_function();
|
||||
return SSH_ERROR;
|
||||
}
|
||||
|
@ -1677,7 +1677,8 @@ static SFTP_ATTRIBUTES *sftp_xstat(SFTP_SESSION *sftp, const char *path, int par
|
||||
status_msg_free(status);
|
||||
return NULL;
|
||||
}
|
||||
ssh_set_error(sftp->session,SSH_FATAL,"Received mesg %d during stat(),mesg->packet_type");
|
||||
ssh_set_error(sftp->session, SSH_FATAL,
|
||||
"Received mesg %d during stat()", msg->packet_type);
|
||||
sftp_message_free(msg);
|
||||
return NULL;
|
||||
}
|
||||
@ -1718,7 +1719,8 @@ SFTP_ATTRIBUTES *sftp_fstat(SFTP_FILE *file) {
|
||||
status_msg_free(status);
|
||||
return NULL;
|
||||
}
|
||||
ssh_set_error(file->sftp->session,SSH_FATAL,"Received mesg %d during fstat(),mesg->packet_type");
|
||||
ssh_set_error(file->sftp->session, SSH_FATAL,
|
||||
"Received msg %d during fstat()", msg->packet_type);
|
||||
sftp_message_free(msg);
|
||||
return NULL;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user