aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-06 13:38:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-10 11:54:31 +0300
commit88d27af738c0c73cc885ec75d52a142c5087367e (patch)
tree25799df91147bc52fe5ea8b25d6d368ae85004b5
parent9f22ba9b0bc726791d182871cebae4990e341194 (diff)
downloadlibmicrohttpd-88d27af738c0c73cc885ec75d52a142c5087367e.tar.gz
libmicrohttpd-88d27af738c0c73cc885ec75d52a142c5087367e.zip
MHD_run_wait(): improved readability
-rw-r--r--src/microhttpd/daemon.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b02978b9..eb210a36 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5528,25 +5528,23 @@ MHD_run_wait (struct MHD_Daemon *daemon,
5528 5528
5529 if (0 > millisec) 5529 if (0 > millisec)
5530 millisec = -1; 5530 millisec = -1;
5531 if (false)
5532 {
5533 (void) 0; /* Mute compiler warning */
5534 }
5535#ifdef HAVE_POLL 5531#ifdef HAVE_POLL
5536 else if (0 != (daemon->options & MHD_USE_POLL)) 5532 if (0 != (daemon->options & MHD_USE_POLL))
5537 { 5533 {
5538 res = MHD_poll_all (daemon, millisec); 5534 res = MHD_poll_all (daemon, millisec);
5539 MHD_cleanup_connections (daemon); 5535 MHD_cleanup_connections (daemon);
5540 } 5536 }
5537 else
5541#endif /* HAVE_POLL */ 5538#endif /* HAVE_POLL */
5542#ifdef EPOLL_SUPPORT 5539#ifdef EPOLL_SUPPORT
5543 else if (0 != (daemon->options & MHD_USE_EPOLL)) 5540 if (0 != (daemon->options & MHD_USE_EPOLL))
5544 { 5541 {
5545 res = MHD_epoll (daemon, millisec); 5542 res = MHD_epoll (daemon, millisec);
5546 MHD_cleanup_connections (daemon); 5543 MHD_cleanup_connections (daemon);
5547 } 5544 }
5548#endif
5549 else 5545 else
5546#endif
5547 if (1)
5550 { 5548 {
5551 res = MHD_select (daemon, millisec); 5549 res = MHD_select (daemon, millisec);
5552 /* MHD_select does MHD_cleanup_connections already */ 5550 /* MHD_select does MHD_cleanup_connections already */