aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-29 16:34:21 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-29 18:42:10 +0200
commit60837b1538e4d61cb847d382a8a608e333f6d0fd (patch)
tree17cb729ab1af51f40ba7f42fa43848cfd40ac78d
parentdebfd1f3a3c1829ae9a762588463ad7ec1b78abd (diff)
downloadlibssh-60837b1538e4d61cb847d382a8a608e333f6d0fd.tar.gz
libssh-60837b1538e4d61cb847d382a8a608e333f6d0fd.tar.xz
libssh-60837b1538e4d61cb847d382a8a608e333f6d0fd.zip
Add channel_write_stderr prototype to the right header file.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
-rw-r--r--include/libssh/libssh.h1
-rw-r--r--include/libssh/server.h2
-rw-r--r--libssh/channels.c3
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;