SLIRP: Coverity identified warning
This commit is contained in:
parent
c638950211
commit
489752596b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue