From 6f39deefcd2a449868ced5f167c44fdec6a61eb8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 31 Oct 2019 13:40:09 +0100 Subject: [PATCH] channels: Fix type of arguments of grow_window() Fixes T188 Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/channels.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/channels.c b/src/channels.c index a3f410fd..ebec0a6a 100644 --- a/src/channels.c +++ b/src/channels.c @@ -392,7 +392,10 @@ ssh_channel ssh_channel_from_local(ssh_session session, uint32_t id) { * @param minimumsize The minimum acceptable size for the new window. * @return SSH_OK if successful; SSH_ERROR otherwise. */ -static int grow_window(ssh_session session, ssh_channel channel, int minimumsize) { +static int grow_window(ssh_session session, + ssh_channel channel, + uint32_t minimumsize) +{ uint32_t new_window = minimumsize > WINDOWBASE ? minimumsize : WINDOWBASE; int rc;