From bccb9b16a58c0f43ff03c39c81db9c0a17d4549b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 29 Jul 2009 23:21:01 +0200 Subject: Move channel_write_stderr to server.c. --- libssh/channels.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'libssh/channels.c') diff --git a/libssh/channels.c b/libssh/channels.c index 8a5ab2a..8b190b4 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -858,7 +858,7 @@ error: return rc; } -static int channel_write_common(ssh_channel channel, const void *data, +int channel_write_common(ssh_channel channel, const void *data, uint32_t len, int is_stderr) { SSH_SESSION *session = channel->session; int origlen = len; @@ -958,23 +958,6 @@ int channel_write(ssh_channel channel, const void *data, uint32_t len) { return channel_write_common(channel, data, len, 0); } -/** - * @brief Blocking write on channel for stderr. - * - * @param channel The channel to write to. - * - * @param data A pointer to the data to write. - * - * @param len The length of the buffer to write to. - * - * @return The number of bytes written, SSH_ERROR on error. - * - * @see channel_read() - */ -int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len) { - return channel_write_common(channel, data, len, 1); -} - /** * @brief Check if the channel is open or not. * -- cgit