aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-31 13:40:09 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-09 16:08:03 +0100
commit6f39deefcd2a449868ced5f167c44fdec6a61eb8 (patch)
tree6a98f247051232b4e6ed38e7907cc3bc3f827234
parent0abd187dba22d4ad9a02bd9a36d5d7179e5df4ec (diff)
downloadlibssh-6f39deefcd2a449868ced5f167c44fdec6a61eb8.tar.gz
libssh-6f39deefcd2a449868ced5f167c44fdec6a61eb8.tar.xz
libssh-6f39deefcd2a449868ced5f167c44fdec6a61eb8.zip
channels: Fix type of arguments of grow_window()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--src/channels.c5
1 files changed, 4 insertions, 1 deletions
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;