libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 759eb24fbdc88d070cf4bfcefe53de4edbc07a41
parent a710f6270813ad935a98893b483d58814f17cdf8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu,  6 Oct 2022 11:46:23 +0300

MHD_start_daemon(): minor readability improvement

Diffstat:
Msrc/microhttpd/daemon.c | 21+++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -6737,16 +6737,17 @@ MHD_start_daemon_va (unsigned int flags, return NULL; /* Check for invalid combinations of flags. */ - if ( ((0 != (*pflags & MHD_USE_POLL)) && (0 != (*pflags & MHD_USE_EPOLL))) || - ((0 != (*pflags & MHD_USE_EPOLL)) && (0 != (*pflags - & - MHD_USE_THREAD_PER_CONNECTION))) - || - ((0 != (*pflags & MHD_USE_POLL)) && - (0 == (*pflags & (MHD_USE_INTERNAL_POLLING_THREAD - | MHD_USE_THREAD_PER_CONNECTION)))) || - ((0 != (*pflags & MHD_USE_AUTO)) && (0 != (*pflags & (MHD_USE_POLL - | MHD_USE_EPOLL)))) ) + if ((0 != (*pflags & MHD_USE_POLL)) && (0 != (*pflags & MHD_USE_EPOLL))) + return NULL; + if ((0 != (*pflags & MHD_USE_EPOLL)) && + (0 != (*pflags & MHD_USE_THREAD_PER_CONNECTION))) + return NULL; + if ((0 != (*pflags & MHD_USE_POLL)) && + (0 == (*pflags & (MHD_USE_INTERNAL_POLLING_THREAD + | MHD_USE_THREAD_PER_CONNECTION)))) + return NULL; + if ((0 != (*pflags & MHD_USE_AUTO)) && + (0 != (*pflags & (MHD_USE_POLL | MHD_USE_EPOLL)))) return NULL; if (0 != (*pflags & MHD_USE_AUTO))