summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-07-04 14:16:13 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-07-04 14:16:13 +0200
commit60c778ad7fa198ad0bf6f5a718a69623134c825c (patch)
treec5ca68f090bbb6edf96f3bde66ee43e69b00996a
parent71100dadcd97e4b7023e4ae0220e7d76716d05d9 (diff)
downloadlibssh-60c778ad7fa198ad0bf6f5a718a69623134c825c.tar.gz
libssh-60c778ad7fa198ad0bf6f5a718a69623134c825c.tar.xz
libssh-60c778ad7fa198ad0bf6f5a718a69623134c825c.zip
fix int -> socket_t in SSH_POLL
-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;
}