From ffd1386a2eb66cf70637efade9281be73158af98 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 13 Mar 2023 19:31:53 +0100 Subject: [PATCH] lwip: Fix lwiopts macro expansion Minor issue in lwipopts.h in macro expansion in parameters (cosmetic change: it expands correctly but doesn't pass the expected argument) --- components/lwip/port/include/lwipopts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lwip/port/include/lwipopts.h b/components/lwip/port/include/lwipopts.h index d97f82829d..c7eb4b9568 100644 --- a/components/lwip/port/include/lwipopts.h +++ b/components/lwip/port/include/lwipopts.h @@ -1204,9 +1204,9 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min) #define LWIP_HOOK_FILENAME "lwip_default_hooks.h" #define LWIP_HOOK_IP4_ROUTE_SRC ip4_route_src_hook #if LWIP_NETCONN_FULLDUPLEX -#define LWIP_DONE_SOCK(s) done_socket(sock) +#define LWIP_DONE_SOCK(sock) done_socket(sock) #else -#define LWIP_DONE_SOCK(s) ((void)1) +#define LWIP_DONE_SOCK(sock) ((void)1) #endif /* LWIP_NETCONN_FULLDUPLEX */ #define LWIP_HOOK_SOCKETS_GETSOCKOPT(s, sock, level, optname, optval, optlen, err) \