mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
buffer: Apply coding style to ssh_buffer_reinit()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -196,12 +196,14 @@ int ssh_buffer_reinit(struct ssh_buffer_struct *buffer)
|
|||||||
explicit_bzero(buffer->data, buffer->used);
|
explicit_bzero(buffer->data, buffer->used);
|
||||||
buffer->used = 0;
|
buffer->used = 0;
|
||||||
buffer->pos = 0;
|
buffer->pos = 0;
|
||||||
if(buffer->allocated > 127) {
|
|
||||||
|
if (buffer->allocated > 127) {
|
||||||
if (realloc_buffer(buffer, 127) < 0) {
|
if (realloc_buffer(buffer, 127) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buffer_verify(buffer);
|
buffer_verify(buffer);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user