1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 18:19:53 +03:00

src/Mayaqua/Network.c: silence coverity on "Unchecked return value"

This commit is contained in:
Ilya Shipitsin 2018-08-23 13:36:38 +05:00
parent 0e5d432ae4
commit ddd0c96d46

View File

@ -11288,7 +11288,7 @@ SOCK *NewUDP4(UINT port, IP *ip)
if (port != 0)
{
bool true_flag = true;
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
(void)setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) != 0)
{
bool false_flag = false;
@ -11385,7 +11385,7 @@ SOCK *NewUDP6(UINT port, IP *ip)
if (port != 0)
{
bool true_flag = true;
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
(void)setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&true_flag, sizeof(bool));
if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) != 0)
{
bool false_flag = false;