From 7a64dd1b9a1cc958218a1e52a87c35d1bb6ed456 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 13 Aug 2013 08:17:15 +0200 Subject: [PATCH] channel: Make channel_write_common() static. --- include/libssh/channels.h | 2 -- src/channels.c | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libssh/channels.h b/include/libssh/channels.h index 45152236..4c726453 100644 --- a/include/libssh/channels.h +++ b/include/libssh/channels.h @@ -96,8 +96,6 @@ int channel_default_bufferize(ssh_channel channel, void *data, int len, int ssh_channel_flush(ssh_channel channel); uint32_t ssh_channel_new_id(ssh_session session); ssh_channel ssh_channel_from_local(ssh_session session, uint32_t id); -int channel_write_common(ssh_channel channel, const void *data, - uint32_t len, int is_stderr); void ssh_channel_do_free(ssh_channel channel); #ifdef WITH_SSH1 SSH_PACKET_CALLBACK(ssh_packet_data1); diff --git a/src/channels.c b/src/channels.c index 11792a99..ffb087c2 100644 --- a/src/channels.c +++ b/src/channels.c @@ -1243,8 +1243,10 @@ int ssh_channel_flush(ssh_channel channel){ return ssh_blocking_flush(channel->session, SSH_TIMEOUT_DEFAULT); } -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; uint32_t origlen = len; size_t effectivelen;