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 Oct 2, 2024
1 parent c1d40b4 commit e7fed2a
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 @@ -1770,10 +1770,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 e7fed2a

Please sign in to comment.