Skip to content

Commit a59c867

Browse files
jomillerOpenedsiper
authored andcommitted
network: Update struct type being passed into accept
Changed (based on an example) the struct declaration being passed to accept to fix the CI pipeline. Signed-off-by: jomillerOpen <[email protected]>
1 parent 6654681 commit a59c867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flb_network.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1819,10 +1819,10 @@ flb_sockfd_t flb_net_accept(flb_sockfd_t server_fd)
18191819
*/
18201820

18211821
#ifdef FLB_HAVE_ACCEPT4
1822-
remote_fd = accept4(server_fd, &sock_addr, &socket_size,
1822+
remote_fd = accept4(server_fd, (struct sockaddr*)&sock_addr, &socket_size,
18231823
SOCK_NONBLOCK | SOCK_CLOEXEC);
18241824
#else
1825-
remote_fd = accept(server_fd, &sock_addr, &socket_size);
1825+
remote_fd = accept(server_fd, (struct sockaddr*)&sock_addr, &socket_size);
18261826
flb_net_socket_nonblocking(remote_fd);
18271827
#endif
18281828

0 commit comments

Comments
 (0)