changes requested by code review

This commit is contained in:
Alexander Sieg 2020-05-07 22:40:57 +02:00
parent a8da30c437
commit 39e226e923
7 changed files with 16 additions and 25 deletions

2
fdm.c
View file

@ -98,7 +98,7 @@ bool
fdm_add(struct fdm *fdm, int fd, int events, fdm_handler_t handler, void *data)
{
#if defined(_DEBUG)
#ifdef __FreeBSD__
#ifndef __FreeBSD__
int flags = fcntl(fd, F_GETFL);
if (!(flags & O_NONBLOCK)) {
LOG_ERR("FD=%d is in blocking mode", fd);