channels: Return size_t for count_ptrs()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
родитель
dad2720355
Коммит
500481e101
@ -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++)
|
||||
;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user