Wrap bitwise OR of socket flags around parenthesis to
silcence compiler warning.
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
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);