aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 480c37cd..5a7c0caa 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5163,8 +5163,9 @@ parse_options_va (struct MHD_Daemon *daemon,
5163#endif 5163#endif
5164 daemon->worker_pool_size = 0; 5164 daemon->worker_pool_size = 0;
5165 } 5165 }
5166#if (0 == (UINT_MAX + 0)) || (UINT_MAX >= (SIZE_MAX / (64 * 1024)))
5166 /* Next comparison could be always false on some platforms and whole branch will 5167 /* Next comparison could be always false on some platforms and whole branch will
5167 * be optimized out on those platforms. On others it will be compiled into real 5168 * be optimized out on these platforms. On others it will be compiled into real
5168 * check. */ 5169 * check. */
5169 else if (daemon->worker_pool_size >= (SIZE_MAX / sizeof (struct 5170 else if (daemon->worker_pool_size >= (SIZE_MAX / sizeof (struct
5170 MHD_Daemon))) /* Compiler may warn on some platforms, ignore warning. */ 5171 MHD_Daemon))) /* Compiler may warn on some platforms, ignore warning. */
@@ -5176,6 +5177,7 @@ parse_options_va (struct MHD_Daemon *daemon,
5176#endif 5177#endif
5177 return MHD_NO; 5178 return MHD_NO;
5178 } 5179 }
5180#endif /* (UINT_MAX >= (SIZE_MAX/(64*1024))) */
5179 else 5181 else
5180 { 5182 {
5181 if (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) 5183 if (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD))