gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 15/31: MHD_run_wait(): improved readability


From: gnunet
Subject: [libmicrohttpd] 15/31: MHD_run_wait(): improved readability
Date: Mon, 10 Oct 2022 13:01:00 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 88d27af738c0c73cc885ec75d52a142c5087367e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 6 13:38:08 2022 +0300

    MHD_run_wait(): improved readability
---
 src/microhttpd/daemon.c | 12 +++++-------
 1 file 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,
 
   if (0 > millisec)
     millisec = -1;
-  if (false)
-  {
-    (void) 0; /* Mute compiler warning */
-  }
 #ifdef HAVE_POLL
-  else if (0 != (daemon->options & MHD_USE_POLL))
+  if (0 != (daemon->options & MHD_USE_POLL))
   {
     res = MHD_poll_all (daemon, millisec);
     MHD_cleanup_connections (daemon);
   }
+  else
 #endif /* HAVE_POLL */
 #ifdef EPOLL_SUPPORT
-  else if (0 != (daemon->options & MHD_USE_EPOLL))
+  if (0 != (daemon->options & MHD_USE_EPOLL))
   {
     res = MHD_epoll (daemon, millisec);
     MHD_cleanup_connections (daemon);
   }
-#endif
   else
+#endif
+  if (1)
   {
     res = MHD_select (daemon, millisec);
     /* MHD_select does MHD_cleanup_connections already */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]