[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/24] buffer: make ssh_buffer_get_len() call ssh_buffer_get_rest_len()
[Thread Prev] | [Thread Next]
- Subject: [PATCH 15/24] buffer: make ssh_buffer_get_len() call ssh_buffer_get_rest_len()
- From: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 18 Jan 2016 10:06:56 +0100
- To: libssh@xxxxxxxxxx
- Cc: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
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@xxxxxxxxxx> --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 8765989..23c8229 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); } /** -- 2.5.0
[PATCH 00/24] clean up + expose some buffer functions (the ones necessary for writing an ssh-agent). | Fabiano Fidêncio <fidencio@xxxxxxxxxx> |