From 9774b1062d8d8899f58923f4dad07b9868c0b3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 25 Sep 2015 00:29:29 +0200 Subject: [PATCH] buffer: make ssh_buffer_get_len() call ssh_buffer_get_rest_len() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Andreas Schneider --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 6809e705..c98e6446 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); } /**