From 154c3217f221a10c5157359755ea7dcae8eb1311 Mon Sep 17 00:00:00 2001 From: Fabiano FidĂȘncio Date: Fri, 25 Sep 2015 01:10:03 +0200 Subject: buffer: rename ssh_buffer_get_rest() to ssh_buffer_get() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabiano FidĂȘncio --- src/buffer.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index a2810245..8765989c 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -425,7 +425,7 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer, int rc; rc = ssh_buffer_add_data(buffer, - ssh_buffer_get_rest(source), + ssh_buffer_get(source), ssh_buffer_get_rest_len(source)); if (rc < 0) { return -1; @@ -444,7 +444,7 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer, * * @warning Don't expect data to be nul-terminated. * - * @see ssh_buffer_get_rest() + * @see ssh_buffer_get() * @see ssh_buffer_get_len() */ void *ssh_buffer_get_begin(struct ssh_buffer_struct *buffer){ @@ -461,9 +461,8 @@ void *ssh_buffer_get_begin(struct ssh_buffer_struct *buffer){ * @return A pointer to the data from current position. * * @see ssh_buffer_get_rest_len() - * @see ssh_buffer_get() */ -void *ssh_buffer_get_rest(struct ssh_buffer_struct *buffer){ +void *ssh_buffer_get(struct ssh_buffer_struct *buffer){ return buffer->data + buffer->pos; } @@ -489,7 +488,7 @@ uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){ * * @return The length of the buffer. * - * @see ssh_buffer_get_rest() + * @see ssh_buffer_get() */ uint32_t ssh_buffer_get_rest_len(struct ssh_buffer_struct *buffer){ buffer_verify(buffer); -- cgit