diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-08 20:28:59 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-08 20:28:59 +0000 |
commit | abf9ccdc5c911f66f19140504974b3606cdb9f26 (patch) | |
tree | 8e60aec559344fc9059724e87b871ca83dcfec5e /libssh/channels1.c | |
parent | 40ddc76e624b268b70e127cecd09be9d81f93a61 (diff) | |
download | libssh-abf9ccdc5c911f66f19140504974b3606cdb9f26.tar.gz libssh-abf9ccdc5c911f66f19140504974b3606cdb9f26.tar.xz libssh-abf9ccdc5c911f66f19140504974b3606cdb9f26.zip |
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
Diffstat (limited to 'libssh/channels1.c')
-rw-r--r-- | libssh/channels1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/channels1.c b/libssh/channels1.c index f1bcbe8..fb742e6 100644 --- a/libssh/channels1.c +++ b/libssh/channels1.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; |