diff options
| author | Fabiano Fidêncio <fidencio@redhat.com> | 2015-09-25 01:10:03 +0200 |
|---|---|---|
| committer | Fabiano Fidêncio <fidencio@redhat.com> | 2015-10-12 13:56:21 +0200 |
| commit | 154c3217f221a10c5157359755ea7dcae8eb1311 (patch) | |
| tree | 704802989b66661c3624aaf053aa224721951c4f /src/buffer.c | |
| parent | 8dabdc7c417948f2966dba6ef1dede23d23d45f7 (diff) | |
buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 9 |
1 files changed, 4 insertions, 5 deletions
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); |
