[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 04/05: MHD_get_timeout(): one more 'int' ->
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 04/05: MHD_get_timeout(): one more 'int' -> 'bool' replacement. |
Date: |
Tue, 28 Feb 2017 17:52:24 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a5b2b99e4bbbcdc226fd9992382f4ccae44dfa50
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue Feb 28 19:27:48 2017 +0300
MHD_get_timeout(): one more 'int' -> 'bool' replacement.
---
src/microhttpd/daemon.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 9a345621..dafc75ef 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2955,7 +2955,7 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
time_t earliest_deadline;
time_t now;
struct MHD_Connection *pos;
- int have_timeout;
+ bool have_timeout;
if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
{
@@ -2983,7 +2983,7 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
}
#endif /* EPOLL_SUPPORT */
- have_timeout = MHD_NO;
+ have_timeout = false;;
earliest_deadline = 0; /* avoid compiler warnings */
for (pos = daemon->manual_timeout_head; NULL != pos; pos = pos->nextX)
{
@@ -2992,7 +2992,7 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
if ( (! have_timeout) ||
(earliest_deadline > pos->last_activity +
pos->connection_timeout) )
earliest_deadline = pos->last_activity + pos->connection_timeout;
- have_timeout = MHD_YES;
+ have_timeout = true;
}
}
/* normal timeouts are sorted, so we only need to look at the 'tail'
(oldest) */
@@ -3003,10 +3003,10 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
if ( (! have_timeout) ||
(earliest_deadline > pos->last_activity + pos->connection_timeout) )
earliest_deadline = pos->last_activity + pos->connection_timeout;
- have_timeout = MHD_YES;
+ have_timeout = true;
}
- if (MHD_NO == have_timeout)
+ if (have_timeout)
return MHD_NO;
now = MHD_monotonic_sec_counter();
if (earliest_deadline < now)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (a44c8f33 -> 78295468), gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 03/05: MHD_get_timeout(): fixed return of latest timeout instead of earliest., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 04/05: MHD_get_timeout(): one more 'int' -> 'bool' replacement.,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_timeout(): fixed incorrect timeout for TLS connections. If connection is in "MHD_EVENT_LOOP_INFO_WRITE" mode, any pending incoming data should not result in zero timeout. Already handled properly by 'data_already_pending'. Note: old check was incorrect even for "MHD_EVENT_LOOP_INFO_READ" connections as only first connection in "normal timeout" list was checked., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 05/05: Walk double-linked lists from 'tail' to 'head'. Walking connection as "First in - First Served" gives more uniform processing time., gnunet, 2017/02/28
- [GNUnet-SVN] [libmicrohttpd] 01/05: configure.ac: skip large GnuTLS and gcrypt tests if HTTPS is disabled, gnunet, 2017/02/28