aboutsummaryrefslogtreecommitdiff
path: root/src/gzip.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/gzip.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/gzip.c')
-rw-r--r--src/gzip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gzip.c b/src/gzip.c
index 08497ca6..c95bf9d8 100644
--- a/src/gzip.c
+++ b/src/gzip.c
@@ -58,8 +58,8 @@ static z_stream *initcompress(ssh_session session, int level) {
static ssh_buffer gzip_compress(ssh_session session,ssh_buffer source,int level){
z_stream *zout = session->current_crypto->compress_out_ctx;
- void *in_ptr = ssh_buffer_get_begin(source);
- unsigned long in_size = ssh_buffer_get_len(source);
+ void *in_ptr = buffer_get_rest(source);
+ unsigned long in_size = buffer_get_rest_len(source);
ssh_buffer dest = NULL;
unsigned char out_buf[BLOCKSIZE] = {0};
unsigned long len;
@@ -113,7 +113,7 @@ int compress_buffer(ssh_session session, ssh_buffer buf) {
return -1;
}
- if (buffer_add_data(buf, ssh_buffer_get_begin(dest), ssh_buffer_get_len(dest)) < 0) {
+ if (buffer_add_data(buf, buffer_get_rest(dest), buffer_get_rest_len(dest)) < 0) {
ssh_buffer_free(dest);
return -1;
}