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:
@@ -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_ */
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user