From a59c8679248b26bec81ed653306996d93b6e711c Mon Sep 17 00:00:00 2001 From: jomillerOpen Date: Wed, 2 Oct 2024 17:16:56 -0400 Subject: [PATCH] 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 --- src/flb_network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flb_network.c b/src/flb_network.c index 11efbb7d60b..e53030ba742 100644 --- a/src/flb_network.c +++ b/src/flb_network.c @@ -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