From f84ebc2e2770b16b43c62ecb67cf8d4bd1b99d72 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 23 Sep 2009 23:51:04 +0200 Subject: Moved lots of declaration out of priv.h --- libssh/channels.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libssh/channels.c') diff --git a/libssh/channels.c b/libssh/channels.c index 99103708..cb7e5439 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -34,6 +34,11 @@ #include "libssh/priv.h" #include "libssh/ssh2.h" +#include "libssh/buffer.h" +#include "libssh/packet.h" +#include "libssh/socket.h" +#include "libssh/channels.h" +#include "libssh/session.h" #define WINDOWBASE 128000 #define WINDOWLIMIT (WINDOWBASE/2) @@ -384,7 +389,7 @@ static void channel_rcv_data(ssh_session session,int is_stderr) { channel->local_window); } - if (channel_default_bufferize(channel, str->string, len, + if (channel_default_bufferize(channel, string_data(str), len, is_stderr) < 0) { string_free(str); leave_function(); -- cgit