mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
poll: Reformat ssh_poll_ctx_resize
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
f039edd85d
commit
a85813e6e6
@@ -571,7 +571,8 @@ static int ssh_poll_ctx_resize(ssh_poll_ctx ctx, size_t new_size)
|
|||||||
|
|
||||||
pollfds = realloc(ctx->pollfds, sizeof(ssh_pollfd_t) * new_size);
|
pollfds = realloc(ctx->pollfds, sizeof(ssh_pollfd_t) * new_size);
|
||||||
if (pollfds == NULL) {
|
if (pollfds == NULL) {
|
||||||
pollptrs = realloc(ctx->pollptrs, sizeof(ssh_poll_handle) * ctx->polls_allocated);
|
pollptrs = realloc(ctx->pollptrs,
|
||||||
|
sizeof(ssh_poll_handle) * ctx->polls_allocated);
|
||||||
if (pollptrs == NULL) {
|
if (pollptrs == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user