]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Revert "Silence warning on arithmetic operation on socket flags"
authorMichalis Pappas <michalis@unikraft.io>
Mon, 1 Jan 2024 14:39:51 +0000 (15:39 +0100)
committerRazvan Deaconescu <razvan.deaconescu@upb.ro>
Tue, 2 Jan 2024 19:11:17 +0000 (21:11 +0200)
This reverts commit b9943070ec9d315068609cb6eec071078bd41ba5.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
GitHub-Closes: #44

sockets.c

index 0dbf5a8523d3306babf8c4b0e3d2afc8d309bd8b..a0bb7151c7275feeddaf80e2714fcb2223a1c9e7 100644 (file)
--- 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);