From: Maria Sfiraiala Date: Sun, 21 Aug 2022 13:54:02 +0000 (+0300) Subject: Remove redundant argument from POSIX_SOCKET_FAMILY_REGISTER macro X-Git-Tag: RELEASE-0.10.0^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=555f4e24a5ac3997da9e4ae31da4ce31ad9c95fe;p=unikraft%2Flibs%2Flwip.git Remove redundant argument from POSIX_SOCKET_FAMILY_REGISTER macro In the `POSIX_SOCKET_FAMILY_REGISTER` macro, when the IPv6 option is selected, the third argument produces a compilation error. Due to the macro being defined in `unikraft/lib/posix-socket/include/uk/socket_driver.h` with only 2 arguments, the third argument becomes redundant. This commit removes it and ensures that the `AF_INET6` is successfully registered. Signed-off-by: Maria Sfiraiala Reviewed-by: Razvan Deaconescu Approved-by: Marc Rittinghaus Tested-by: Unikraft CI GitHub-Pull-Request: #18 --- diff --git a/sockets.c b/sockets.c index 7a26eb6..5c3ffdc 100644 --- a/sockets.c +++ b/sockets.c @@ -617,7 +617,7 @@ static struct posix_socket_ops lwip_posix_socket_ops = { POSIX_SOCKET_FAMILY_REGISTER(AF_INET, &lwip_posix_socket_ops); #ifdef CONFIG_LWIP_IPV6 -POSIX_SOCKET_FAMILY_REGISTER(AF_INET6, &lwip_posix_socket_ops, NULL); +POSIX_SOCKET_FAMILY_REGISTER(AF_INET6, &lwip_posix_socket_ops); #endif /* CONFIG_LWIP_IPV6 */ #include