summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2015-09-25 00:29:29 +0200
committerFabiano Fidêncio <fidencio@redhat.com>2015-10-12 13:56:21 +0200
commit397782ac2f31c3dbb960522802a1345e6a4aab9a (patch)
tree15dd2e500ff93100d5d73f2508a567afad332118
parent154c3217f221a10c5157359755ea7dcae8eb1311 (diff)
downloadlibssh-397782ac2f31c3dbb960522802a1345e6a4aab9a.tar.gz
libssh-397782ac2f31c3dbb960522802a1345e6a4aab9a.tar.xz
libssh-397782ac2f31c3dbb960522802a1345e6a4aab9a.zip
buffer: make ssh_buffer_get_len() call ssh_buffer_get_rest_len()
This is a preparatory step for having the behavior of ssh_buffer_get_rest_len() in the ssh_buffer_get_len() and then remove the ssh_buffer_rest_len() Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8765989c..23c8229a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -476,7 +476,7 @@ void *ssh_buffer_get(struct ssh_buffer_struct *buffer){
* @see ssh_buffer_get()
*/
uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){
- return buffer->used;
+ return ssh_buffer_get_rest_len(buffer);
}
/**