mirror of
https://github.com/simh/simh.git
synced 2026-01-13 23:35:57 +00:00
SLIRP: Coverity identified warning
This commit is contained in:
parent
c638950211
commit
489752596b
@ -151,8 +151,10 @@ unsigned long non_block = 1;
|
||||
void qemu_set_nonblock(int fd)
|
||||
{
|
||||
int f;
|
||||
|
||||
f = fcntl(fd, F_GETFL);
|
||||
fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
||||
if (f!= -1)
|
||||
fcntl(fd, F_SETFL, f | O_NONBLOCK);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user