diff --git a/slirp_glue/glib_qemu_stubs.c b/slirp_glue/glib_qemu_stubs.c index a36bd4b5..99f06245 100644 --- a/slirp_glue/glib_qemu_stubs.c +++ b/slirp_glue/glib_qemu_stubs.c @@ -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 @@ -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