aboutsummaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-10-03 12:07:00 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-10-03 12:07:00 +0200
commit338a3d9b0509d4cf49d2fdb00b17a9e9f7593447 (patch)
tree2a558ca6de423773cde030b44953d5c75a51974c /src/channels.c
parent5687d6e79a3ded310c847177d3a200384fdeb3d9 (diff)
downloadlibssh-338a3d9b0509d4cf49d2fdb00b17a9e9f7593447.tar.gz
libssh-338a3d9b0509d4cf49d2fdb00b17a9e9f7593447.tar.xz
libssh-338a3d9b0509d4cf49d2fdb00b17a9e9f7593447.zip
Removed references to ssh_buffer_get_begin
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/channels.c b/src/channels.c
index 9d726fe5..ce94225d 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -1317,8 +1317,8 @@ static int channel_request(ssh_channel channel, const char *request,
ssh_string_free(req);
if (buffer != NULL) {
- if (buffer_add_data(session->out_buffer, ssh_buffer_get_begin(buffer),
- ssh_buffer_get_len(buffer)) < 0) {
+ if (buffer_add_data(session->out_buffer, buffer_get_rest(buffer),
+ buffer_get_rest_len(buffer)) < 0) {
goto error;
}
}
@@ -1773,8 +1773,8 @@ static int global_request(ssh_session session, const char *request,
req=NULL;
if (buffer != NULL) {
- if (buffer_add_data(session->out_buffer, ssh_buffer_get_begin(buffer),
- ssh_buffer_get_len(buffer)) < 0) {
+ if (buffer_add_data(session->out_buffer, buffer_get_rest(buffer),
+ buffer_get_rest_len(buffer)) < 0) {
goto error;
}
}
@@ -2409,8 +2409,8 @@ static int channel_protocol_select(ssh_channel *rchans, ssh_channel *wchans,
ssh_handle_packets(chan->session,-1);
}
- if ((chan->stdout_buffer && ssh_buffer_get_len(chan->stdout_buffer) > 0) ||
- (chan->stderr_buffer && ssh_buffer_get_len(chan->stderr_buffer) > 0) ||
+ if ((chan->stdout_buffer && buffer_get_rest_len(chan->stdout_buffer) > 0) ||
+ (chan->stderr_buffer && buffer_get_rest_len(chan->stderr_buffer) > 0) ||
chan->remote_eof) {
rout[j] = chan;
j++;