Skip to content

Commit

Permalink
SLIRP: silence Coverity noise
Browse files Browse the repository at this point in the history
  • Loading branch information
markpizz committed Mar 28, 2017
1 parent f4b7d1f commit d985645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slirp_glue/glib_qemu_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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

Expand Down

0 comments on commit d985645

Please sign in to comment.