diff --git a/src/io_posix.c b/src/io_posix.c index bdf6d78..048a2a1 100644 --- a/src/io_posix.c +++ b/src/io_posix.c @@ -127,13 +127,13 @@ udx__recvmsg (udx_socket_t *handle, uv_buf_t *buf, struct sockaddr *addr, int ad #if defined(__linux__) int -udx__udp_set_rxq_ovfl (int fd) { +udx__udp_set_rxq_ovfl (uv_os_sock_t fd) { int on = 1; return setsockopt(fd, SOL_SOCKET, SO_RXQ_OVFL, &on, sizeof(on)); } #else int -udx__udp_set_rxq_ovfl (int fd) { +udx__udp_set_rxq_ovfl (uv_os_sock_t fd) { UDX_UNUSED(fd); return -1; } diff --git a/src/io_win.c b/src/io_win.c index d7a2df6..630f76e 100644 --- a/src/io_win.c +++ b/src/io_win.c @@ -83,7 +83,7 @@ udx__recvmsg (udx_socket_t *socket, uv_buf_t *buf, struct sockaddr *addr, int ad } int -udx__udp_set_rxq_ovfl (int fd) { +udx__udp_set_rxq_ovfl (uv_os_sock_t fd) { UDX_UNUSED(fd); return -1; } diff --git a/src/udx.c b/src/udx.c index 6ea7309..08538f7 100644 --- a/src/udx.c +++ b/src/udx.c @@ -2085,7 +2085,7 @@ udx_socket_bind (udx_socket_t *socket, const struct sockaddr *addr, unsigned int err = uv_poll_init_socket(socket->udx->loop, poll, (uv_os_sock_t) fd); assert(err == 0); - err = udx__udp_set_rxq_ovfl(fd); + err = udx__udp_set_rxq_ovfl((uv_os_sock_t) fd); if (!err) { socket->cmsg_wanted = true; socket->packets_dropped_by_kernel = 0;