SLIRP: Coverity identified warning
This commit is contained in:
parent
c638950211
commit
489752596b
1 changed files with 3 additions and 1 deletions
|
@ -151,8 +151,10 @@ unsigned long non_block = 1;
|
||||||
void qemu_set_nonblock(int fd)
|
void qemu_set_nonblock(int fd)
|
||||||
{
|
{
|
||||||
int f;
|
int f;
|
||||||
|
|
||||||
f = fcntl(fd, F_GETFL);
|
f = fcntl(fd, F_GETFL);
|
||||||
fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
if (f!= -1)
|
||||||
|
fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue