[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 02/02: thread_main_handle_connection(): use
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 02/02: thread_main_handle_connection(): use bool wider |
Date: |
Fri, 10 Mar 2017 18:12:58 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit b91d61b766e525c56675b46cd0ebb0f7229ec5a0
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Fri Mar 10 20:12:34 2017 +0300
thread_main_handle_connection(): use bool wider
---
src/microhttpd/daemon.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 895f14f6..2761bc28 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1651,9 +1651,9 @@ thread_main_handle_connection (void *data)
#endif
#undef EXTRA_SLOTS
#ifdef HAVE_POLL
- const int use_poll = (0 != (daemon->options & MHD_USE_POLL));
+ const bool use_poll = (0 != (daemon->options & MHD_USE_POLL));
#else /* ! HAVE_POLL */
- const int use_poll = MHD_NO;
+ const bool use_poll = 0;
#endif /* ! HAVE_POLL */
bool was_suspended = false;
@@ -1773,7 +1773,7 @@ thread_main_handle_connection (void *data)
tv.tv_usec = 0;
tvp = &tv;
}
- if (0 == (daemon->options & MHD_USE_POLL))
+ if (! use_poll)
{
/* use select */
bool err_state = false;
--
To stop receiving notification emails like this one, please contact
address@hidden