mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
fix int -> socket_t in SSH_POLL
This commit is contained in:
@@ -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_set_events(SSH_POLL *p, short events);
|
||||||
void ssh_poll_add_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);
|
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);
|
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);
|
SSH_POLL_CTX *ssh_poll_ctx_new(size_t chunk_size);
|
||||||
void ssh_poll_ctx_free(SSH_POLL_CTX *ctx);
|
void ssh_poll_ctx_free(SSH_POLL_CTX *ctx);
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ void ssh_poll_remove_events(SSH_POLL *p, short events) {
|
|||||||
* @return Raw socket.
|
* @return Raw socket.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int ssh_poll_get_fd(SSH_POLL *p) {
|
socket_t ssh_poll_get_fd(SSH_POLL *p) {
|
||||||
if (p->ctx != NULL) {
|
if (p->ctx != NULL) {
|
||||||
return p->ctx->pollfds[p->idx].fd;
|
return p->ctx->pollfds[p->idx].fd;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user