Skip to content

Commit

Permalink
clean compile on clang / udx-native (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas43 authored Nov 8, 2024
1 parent c0aedb5 commit 8289f69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/io_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/io_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8289f69

Please sign in to comment.