1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-03 13:31:11 +03:00

session: Use long for the timeout

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-11-20 09:27:54 +01:00
parent f05717d23e
commit 8ece2abfab
2 changed files with 5 additions and 3 deletions

View File

@@ -235,8 +235,10 @@ struct ssh_session_struct {
*/ */
typedef int (*ssh_termination_function)(void *user); typedef int (*ssh_termination_function)(void *user);
int ssh_handle_packets(ssh_session session, int timeout); int ssh_handle_packets(ssh_session session, int timeout);
int ssh_handle_packets_termination(ssh_session session, int timeout, int ssh_handle_packets_termination(ssh_session session,
ssh_termination_function fct, void *user); long timeout,
ssh_termination_function fct,
void *user);
void ssh_socket_exception_callback(int code, int errno_code, void *user); void ssh_socket_exception_callback(int code, int errno_code, void *user);
#endif /* SESSION_H_ */ #endif /* SESSION_H_ */

View File

@@ -658,7 +658,7 @@ int ssh_handle_packets(ssh_session session, int timeout) {
* @return SSH_OK on success, SSH_ERROR otherwise. * @return SSH_OK on success, SSH_ERROR otherwise.
*/ */
int ssh_handle_packets_termination(ssh_session session, int ssh_handle_packets_termination(ssh_session session,
int timeout, long timeout,
ssh_termination_function fct, ssh_termination_function fct,
void *user) void *user)
{ {