mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 21:00:33 +09:00
channels: Return size_t for count_ptrs()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -3245,8 +3245,9 @@ static int channel_protocol_select(ssh_channel *rchans, ssh_channel *wchans,
|
||||
}
|
||||
|
||||
/* Just count number of pointers in the array */
|
||||
static int count_ptrs(ssh_channel *ptrs) {
|
||||
int c;
|
||||
static size_t count_ptrs(ssh_channel *ptrs)
|
||||
{
|
||||
size_t c;
|
||||
for (c = 0; ptrs[c] != NULL; c++)
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user