diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index b469c70b..1c7368ad 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -39,10 +39,6 @@ | |||
39 | #include "mhd_itc.h" | 39 | #include "mhd_itc.h" |
40 | #include "mhd_compat.h" | 40 | #include "mhd_compat.h" |
41 | 41 | ||
42 | #ifdef HAVE_STDBOOL_H | ||
43 | #include <stdbool.h> | ||
44 | #endif | ||
45 | |||
46 | #if HAVE_SEARCH_H | 42 | #if HAVE_SEARCH_H |
47 | #include <search.h> | 43 | #include <search.h> |
48 | #else | 44 | #else |
@@ -5447,14 +5443,14 @@ static void | |||
5447 | close_all_connections (struct MHD_Daemon *daemon) | 5443 | close_all_connections (struct MHD_Daemon *daemon) |
5448 | { | 5444 | { |
5449 | struct MHD_Connection *pos; | 5445 | struct MHD_Connection *pos; |
5450 | const _MHD_bool used_thr_p_c = (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)); | 5446 | const bool used_thr_p_c = (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)); |
5451 | #ifdef UPGRADE_SUPPORT | 5447 | #ifdef UPGRADE_SUPPORT |
5452 | const _MHD_bool upg_allowed = (0 != (daemon->options & MHD_USE_UPGRADE)); | 5448 | const bool upg_allowed = (0 != (daemon->options & MHD_USE_UPGRADE)); |
5453 | #endif /* UPGRADE_SUPPORT */ | 5449 | #endif /* UPGRADE_SUPPORT */ |
5454 | #if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT) | 5450 | #if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT) |
5455 | struct MHD_UpgradeResponseHandle *urh; | 5451 | struct MHD_UpgradeResponseHandle *urh; |
5456 | struct MHD_UpgradeResponseHandle *urhn; | 5452 | struct MHD_UpgradeResponseHandle *urhn; |
5457 | const _MHD_bool used_tls = (0 != (daemon->options & MHD_USE_TLS)); | 5453 | const bool used_tls = (0 != (daemon->options & MHD_USE_TLS)); |
5458 | 5454 | ||
5459 | /* give upgraded HTTPS connections a chance to finish */ | 5455 | /* give upgraded HTTPS connections a chance to finish */ |
5460 | /* 'daemon->urh_head' is not used in thread-per-connection mode. */ | 5456 | /* 'daemon->urh_head' is not used in thread-per-connection mode. */ |