Skip to content

Commit 555f4e2

Browse files
mariasfiraialaunikraft-bot
authored andcommitted
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 <maria.sfiraiala@gmail.com> Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro> Approved-by: Marc Rittinghaus <marc.rittinghaus@kit.edu> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Pull-Request: #18
1 parent 89003de commit 555f4e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sockets.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ static struct posix_socket_ops lwip_posix_socket_ops = {
617617
POSIX_SOCKET_FAMILY_REGISTER(AF_INET, &lwip_posix_socket_ops);
618618

619619
#ifdef CONFIG_LWIP_IPV6
620-
POSIX_SOCKET_FAMILY_REGISTER(AF_INET6, &lwip_posix_socket_ops, NULL);
620+
POSIX_SOCKET_FAMILY_REGISTER(AF_INET6, &lwip_posix_socket_ops);
621621
#endif /* CONFIG_LWIP_IPV6 */
622622

623623
#include <lwip/if_api.h>

0 commit comments

Comments
 (0)