1
1

channels: Return size_t for count_ptrs()

Fixes T188

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
Andreas Schneider 2019-11-05 13:32:41 +01:00
родитель 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++)
;