Skip to content

Commit

Permalink
network: Update struct type being passed into accept
Browse files Browse the repository at this point in the history
Changed (based on an example) the struct declaration being passed to accept to fix the CI pipeline.

Signed-off-by: jomillerOpen <[email protected]>
  • Loading branch information
jomillerOpen authored and edsiper committed Nov 27, 2024
1 parent 6654681 commit a59c867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flb_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -1819,10 +1819,10 @@ flb_sockfd_t flb_net_accept(flb_sockfd_t server_fd)
*/

#ifdef FLB_HAVE_ACCEPT4
remote_fd = accept4(server_fd, &sock_addr, &socket_size,
remote_fd = accept4(server_fd, (struct sockaddr*)&sock_addr, &socket_size,
SOCK_NONBLOCK | SOCK_CLOEXEC);
#else
remote_fd = accept(server_fd, &sock_addr, &socket_size);
remote_fd = accept(server_fd, (struct sockaddr*)&sock_addr, &socket_size);
flb_net_socket_nonblocking(remote_fd);
#endif

Expand Down

0 comments on commit a59c867

Please sign in to comment.