SLIRP: Coverity identified warning

This commit is contained in:
Mark Pizzolato 2017-03-26 11:49:05 -07:00
parent c638950211
commit 489752596b

View file

@ -151,7 +151,9 @@ unsigned long non_block = 1;
void qemu_set_nonblock(int fd)
{
int f;
f = fcntl(fd, F_GETFL);
if (f!= -1)
fcntl(fd, F_SETFL, f | O_NONBLOCK);
}
#endif