mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
buffer: remove ssh_buffer_get_rest_len()
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
17
src/buffer.c
17
src/buffer.c
@@ -467,21 +467,6 @@ void *ssh_buffer_get(struct ssh_buffer_struct *buffer){
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the length of the buffer, not counting position.
|
||||
*
|
||||
* @param[in] buffer The buffer to get the length from.
|
||||
*
|
||||
* @return The length of the buffer.
|
||||
*
|
||||
* @see ssh_buffer_get()
|
||||
*/
|
||||
uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){
|
||||
return ssh_buffer_get_rest_len(buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @brief Get the length of the buffer from the current position.
|
||||
*
|
||||
* @param[in] buffer The buffer to get the length from.
|
||||
@@ -490,7 +475,7 @@ uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){
|
||||
*
|
||||
* @see ssh_buffer_get()
|
||||
*/
|
||||
uint32_t ssh_buffer_get_rest_len(struct ssh_buffer_struct *buffer){
|
||||
uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){
|
||||
buffer_verify(buffer);
|
||||
return buffer->used - buffer->pos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user