aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libssh/session.h6
-rw-r--r--src/session.c2
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)
{