SLIRP: silence Coverity noise
This commit is contained in:
parent
f4b7d1fbf8
commit
d98564544e
1 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ void qemu_set_nonblock(int fd)
|
||||||
{
|
{
|
||||||
unsigned long non_block = 1;
|
unsigned long non_block = 1;
|
||||||
|
|
||||||
ioctlsocket ((SOCKET)fd, FIONBIO, &non_block); /* set nonblocking */
|
(void)ioctlsocket ((SOCKET)fd, FIONBIO, &non_block); /* set nonblocking */
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -153,8 +153,8 @@ void qemu_set_nonblock(int fd)
|
||||||
int f;
|
int f;
|
||||||
|
|
||||||
f = fcntl(fd, F_GETFL);
|
f = fcntl(fd, F_GETFL);
|
||||||
if (f!= -1)
|
if (f != -1)
|
||||||
fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
(void)fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue