diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-11-20 09:27:54 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-12-07 17:49:17 +0100 |
commit | 8ece2abfab35da017c58bde04b97fa98f212a1b0 (patch) | |
tree | a252ec8ae9f549afcd58531a3b463ff946314e88 | |
parent | f05717d23e31a7776df863cd3c0a302bd8b7e8f3 (diff) | |
download | libssh-8ece2abfab35da017c58bde04b97fa98f212a1b0.tar.gz libssh-8ece2abfab35da017c58bde04b97fa98f212a1b0.tar.xz libssh-8ece2abfab35da017c58bde04b97fa98f212a1b0.zip |
session: Use long for the timeout
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | include/libssh/session.h | 6 | ||||
-rw-r--r-- | 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) { |