1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 00:04:57 +03:00

src/Cedar/Client.c, src/Mayaqua/Network.c, src/Mayaqua/Unix.c: silence coverity

This commit is contained in:
Ilya Shipitsin
2018-08-22 10:40:13 +05:00
parent 5ecc80a14e
commit e8c6e2c1d9
3 changed files with 11 additions and 11 deletions

View File

@ -536,7 +536,7 @@ void UnixSolarisSleep(UINT msec)
p.fd = solaris_sleep_p1;
p.events = POLLIN;
poll(&p, 1, msec == INFINITE ? -1 : (int)msec);
(void)poll(&p, 1, msec == INFINITE ? -1 : (int)msec);
}
// Get the free space of the disk
@ -855,7 +855,7 @@ void UnixFreeSingleInstance(void *data)
(void)fcntl(o->fd, F_SETLK, &lock);
close(o->fd);
remove(o->FileName);
(void)remove(o->FileName);
Free(data);
}
@ -1261,7 +1261,7 @@ void UnixCloseIO()
close(0);
close(1);
close(2);
open("/dev/null", O_RDWR);
(void)open("/dev/null", O_RDWR);
dup2(0, 1);
dup2(0, 2);
close_io_first = false;