summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libssh/priv.h2
-rw-r--r--libssh/poll.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 829ac673..71940bd1 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -533,7 +533,7 @@ short ssh_poll_get_events(SSH_POLL *p);
void ssh_poll_set_events(SSH_POLL *p, short events);
void ssh_poll_add_events(SSH_POLL *p, short events);
void ssh_poll_remove_events(SSH_POLL *p, short events);
-int ssh_poll_get_fd(SSH_POLL *p);
+socket_t ssh_poll_get_fd(SSH_POLL *p);
void ssh_poll_set_callback(SSH_POLL *p, ssh_poll_callback cb, void *userdata);
SSH_POLL_CTX *ssh_poll_ctx_new(size_t chunk_size);
void ssh_poll_ctx_free(SSH_POLL_CTX *ctx);
diff --git a/libssh/poll.c b/libssh/poll.c
index e72e6915..18b53cca 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -332,7 +332,7 @@ void ssh_poll_remove_events(SSH_POLL *p, short events) {
* @return Raw socket.
*/
-int ssh_poll_get_fd(SSH_POLL *p) {
+socket_t ssh_poll_get_fd(SSH_POLL *p) {
if (p->ctx != NULL) {
return p->ctx->pollfds[p->idx].fd;
}