libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 61b407a25a6f9c3d761685b6ebad4065c2b4775e
parent 5da716e8c2267a1b8a2fe82506e872c8491645c2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 25 May 2023 13:23:28 +0300

Avoided potential compiler warnings

Diffstat:
Msrc/microhttpd/daemon.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -4269,7 +4269,7 @@ get_timeout_millisec_ (struct MHD_Daemon *daemon, if ((0 < max_timeout) && ((uint64_t) max_timeout < d_timeout)) return max_timeout; - if (INT64_MAX < d_timeout) + if (INT64_MAX <= d_timeout) return INT64_MAX; return (int64_t) d_timeout;