From ddd0c96d461c4c7f305dac766360086cc5eb9bd0 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Thu, 23 Aug 2018 13:36:38 +0500 Subject: [PATCH] src/Mayaqua/Network.c: silence coverity on "Unchecked return value" --- src/Mayaqua/Network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mayaqua/Network.c b/src/Mayaqua/Network.c index 86e10b23..e51a61fa 100644 --- a/src/Mayaqua/Network.c +++ b/src/Mayaqua/Network.c @@ -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;