From 60837b1538e4d61cb847d382a8a608e333f6d0fd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 29 Jul 2009 16:34:21 +0200 Subject: Add channel_write_stderr prototype to the right header file. Signed-off-by: Andreas Schneider --- include/libssh/libssh.h | 1 + include/libssh/server.h | 2 -- libssh/channels.c | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 924992a2..8d2075f5 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -285,6 +285,7 @@ int channel_request_env(ssh_channel channel, const char *name, const char *value int channel_request_exec(ssh_channel channel, const char *cmd); int channel_request_sftp(ssh_channel channel); int channel_write(ssh_channel channel, const void *data, uint32_t len); +int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len); int channel_send_eof(ssh_channel channel); int channel_is_eof(ssh_channel channel); int channel_read(ssh_channel channel, void *dest, uint32_t count, int is_stderr); diff --git a/include/libssh/server.h b/include/libssh/server.h index b06ff897..69eb50b2 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -174,8 +174,6 @@ char *ssh_message_service_service(SSH_MESSAGE *msg); void ssh_set_message_callback(SSH_SESSION *session, int(*ssh_message_callback)(ssh_session session, struct ssh_message *msg)); -int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len); - char *ssh_message_channel_request_open_originator(SSH_MESSAGE *msg); int ssh_message_channel_request_open_originator_port(SSH_MESSAGE *msg); char *ssh_message_channel_request_open_destination(SSH_MESSAGE *msg); diff --git a/libssh/channels.c b/libssh/channels.c index f40ebc93..9e558894 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -858,7 +858,8 @@ error: return rc; } -int channel_write_common(ssh_channel channel, const void *data, uint32_t len, int is_stderr) { +static int channel_write_common(ssh_channel channel, const void *data, + uint32_t len, int is_stderr) { SSH_SESSION *session = channel->session; int origlen = len; int effectivelen; -- cgit