aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-11-05 13:31:10 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-09 16:08:03 +0100
commitd60640cd0e04a1b14254b0679348c9393f2bb029 (patch)
treeb5a4918eb2e8da37a129403f18ec84e269b8082f /include
parent64155b4f97106f34d69821b45af43d56f1ed0db1 (diff)
downloadlibssh-d60640cd0e04a1b14254b0679348c9393f2bb029.tar.gz
libssh-d60640cd0e04a1b14254b0679348c9393f2bb029.tar.xz
libssh-d60640cd0e04a1b14254b0679348c9393f2bb029.zip
socket: Pass port as uint16_t to ssh_socket_connect()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/socket.h b/include/libssh/socket.h
index 5c296e0d..5e345c68 100644
--- a/include/libssh/socket.h
+++ b/include/libssh/socket.h
@@ -63,6 +63,9 @@ void ssh_socket_set_callbacks(ssh_socket s, ssh_socket_callbacks callbacks);
int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p, socket_t fd, int revents, void *v_s);
struct ssh_poll_handle_struct * ssh_socket_get_poll_handle(ssh_socket s);
-int ssh_socket_connect(ssh_socket s, const char *host, int port, const char *bind_addr);
+int ssh_socket_connect(ssh_socket s,
+ const char *host,
+ uint16_t port,
+ const char *bind_addr);
#endif /* SOCKET_H_ */