mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Fix build error in SSHv1 channel code.
Thanks to Norbert Kiesel <nkiesel@tbdnetworks.com> for the patch. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@435 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -675,13 +675,13 @@ u64 ntohll(u64);
|
||||
|
||||
/* channels1.c */
|
||||
int channel_open_session1(CHANNEL *channel);
|
||||
int channel_request_pty_size1(CHANNEL *channel, char *terminal,int cols,
|
||||
int rows);
|
||||
int channel_request_pty_size1(CHANNEL *channel, const char *terminal,
|
||||
int cols, int rows);
|
||||
int channel_change_pty_size1(CHANNEL *channel, int cols, int rows);
|
||||
int channel_request_shell1(CHANNEL *channel);
|
||||
int channel_request_exec1(CHANNEL *channel, char *cmd);
|
||||
int channel_request_exec1(CHANNEL *channel, const char *cmd);
|
||||
int channel_handle1(SSH_SESSION *session, int type);
|
||||
int channel_write1(CHANNEL *channel, void *data, int len);
|
||||
int channel_write1(CHANNEL *channel, const void *data, int len);
|
||||
|
||||
/* session.c */
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ int channel_open_session1(CHANNEL *chan){
|
||||
* much simplier under ssh2. I just hope the defaults values are ok ...
|
||||
*/
|
||||
|
||||
int channel_request_pty_size1(CHANNEL *channel, char *terminal, int col,
|
||||
int channel_request_pty_size1(CHANNEL *channel, const char *terminal, int col,
|
||||
int row) {
|
||||
SSH_SESSION *session = channel->session;
|
||||
STRING *str = NULL;
|
||||
@@ -100,7 +100,7 @@ int channel_request_pty_size1(CHANNEL *channel, char *terminal, int col,
|
||||
if (buffer_add_u32(session->out_buffer, 0) < 0) { /* y */
|
||||
return -1;
|
||||
}
|
||||
if (buffer_add_u8(session->out_buffer, 0); < 0) { /* tty things */
|
||||
if (buffer_add_u8(session->out_buffer, 0) < 0) { /* tty things */
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ int channel_handle1(SSH_SESSION *session, int type) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int channel_write1(CHANNEL *channel, void *data, int len) {
|
||||
int channel_write1(CHANNEL *channel, const void *data, int len) {
|
||||
SSH_SESSION *session = channel->session;
|
||||
int origlen = len;
|
||||
int effectivelen;
|
||||
|
||||
Reference in New Issue
Block a user