log: unchecked return value from library
fix 1237557 Unchecked return value from library
This commit is contained in:
committed by
David Herrmann
parent
c9732bae8f
commit
9593d9d9d5
+1
-1
@@ -122,7 +122,7 @@ static int create_log_socket(int type) {
|
||||
timeval_store(&tv, 10 * USEC_PER_MSEC);
|
||||
else
|
||||
timeval_store(&tv, 10 * USEC_PER_SEC);
|
||||
setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
|
||||
(void)setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user