more pre-8.0 fixes

This commit is contained in:
vanhauser-thc 2014-04-28 13:05:35 +02:00
parent 163a499bfe
commit 94893bd698
26 changed files with 4079 additions and 5 deletions

View file

@ -34,7 +34,7 @@ ssize_t read_safe(int fd, void *buffer, size_t len) {
struct timeval tv;
int ret = 0;
fcntl(fd, F_SETFL, O_NONBLOCK);
(void)fcntl(fd, F_SETFL, O_NONBLOCK);
do {
FD_ZERO(&fr);
FD_SET(fd, &fr);