From: Michalis Pappas Date: Mon, 1 Jan 2024 14:39:51 +0000 (+0100) Subject: Revert "Silence warning on arithmetic operation on socket flags" X-Git-Tag: RELEASE-0.16.0~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=11f4bc8c8c8ec3e58cdd31cca952025d1630c35c;p=unikraft%2Flibs%2Flwip.git Revert "Silence warning on arithmetic operation on socket flags" This reverts commit b9943070ec9d315068609cb6eec071078bd41ba5. Signed-off-by: Michalis Pappas Approved-by: Razvan Deaconescu Reviewed-by: Razvan Deaconescu Reviewed-by: Stefan Jumarea GitHub-Closes: #44 --- diff --git a/sockets.c b/sockets.c index 0dbf5a8..a0bb715 100644 --- a/sockets.c +++ b/sockets.c @@ -80,7 +80,7 @@ lwip_posix_socket_create(struct posix_socket_driver *d, int family, int type, int flags, rc; /* Blocking is handled by posix-socket */ - flags = type & (SOCK_FLAGS | SOCK_NONBLOCK); + flags = type & SOCK_FLAGS | SOCK_NONBLOCK; type = type & ~SOCK_FLAGS; lwip_fd = lwip_socket(family, type, protocol);