From 8ece2abfab35da017c58bde04b97fa98f212a1b0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Nov 2018 09:27:54 +0100 Subject: [PATCH] session: Use long for the timeout Signed-off-by: Andreas Schneider --- include/libssh/session.h | 6 ++++-- src/session.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/libssh/session.h b/include/libssh/session.h index f0ad951b..0c015fa0 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -235,8 +235,10 @@ struct ssh_session_struct { */ typedef int (*ssh_termination_function)(void *user); int ssh_handle_packets(ssh_session session, int timeout); -int ssh_handle_packets_termination(ssh_session session, int timeout, - ssh_termination_function fct, void *user); +int ssh_handle_packets_termination(ssh_session session, + long timeout, + ssh_termination_function fct, + void *user); void ssh_socket_exception_callback(int code, int errno_code, void *user); #endif /* SESSION_H_ */ diff --git a/src/session.c b/src/session.c index 157fe1e7..9f390f3c 100644 --- a/src/session.c +++ b/src/session.c @@ -658,7 +658,7 @@ int ssh_handle_packets(ssh_session session, int timeout) { * @return SSH_OK on success, SSH_ERROR otherwise. */ int ssh_handle_packets_termination(ssh_session session, - int timeout, + long timeout, ssh_termination_function fct, void *user) {