mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
SLIRP: silence Coverity noise
This commit is contained in:
parent
f4b7d1fbf8
commit
d98564544e
@ -144,7 +144,7 @@ void qemu_set_nonblock(int fd)
|
||||
{
|
||||
unsigned long non_block = 1;
|
||||
|
||||
ioctlsocket ((SOCKET)fd, FIONBIO, &non_block); /* set nonblocking */
|
||||
(void)ioctlsocket ((SOCKET)fd, FIONBIO, &non_block); /* set nonblocking */
|
||||
}
|
||||
#else
|
||||
#include <fcntl.h>
|
||||
@ -153,8 +153,8 @@ void qemu_set_nonblock(int fd)
|
||||
int f;
|
||||
|
||||
f = fcntl(fd, F_GETFL);
|
||||
if (f!= -1)
|
||||
fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
||||
if (f != -1)
|
||||
(void)fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user