commit b91d61b766e525c56675b46cd0ebb0f7229ec5a0 parent defb4e4d7bb7fcdab4db921864019dcd38a2cf1a Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Fri, 10 Mar 2017 20:12:34 +0300 thread_main_handle_connection(): use bool wider Diffstat:
| M | src/microhttpd/daemon.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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;