gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 144/156: Avoided potential compiler warnings


From: gnunet
Subject: [libmicrohttpd] 144/156: Avoided potential compiler warnings
Date: Sun, 28 May 2023 17:53:17 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.

commit 30be24d9a9ab4b27602836b712c0ec59b6c23e33
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 25 13:23:28 2023 +0300

    Avoided potential compiler warnings
---
 src/microhttpd/daemon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 55df49ea..db2432bc 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -4033,13 +4033,13 @@ get_timeout_millisec_ (struct MHD_Daemon *daemon,
     return 0;
 
   if (MHD_NO == MHD_get_timeout (daemon, &ulltimeout))
-    return (INT_MAX < max_timeout) ? INT_MAX : (int) max_timeout;
+    return (INT_MAX <= max_timeout) ? INT_MAX : (int) max_timeout;
 
   if ( (0 > max_timeout) ||
        ((uint32_t) max_timeout > ulltimeout) )
-    return (INT_MAX < ulltimeout) ? INT_MAX : (int) ulltimeout;
+    return (INT_MAX <= ulltimeout) ? INT_MAX : (int) ulltimeout;
 
-  return (INT_MAX < max_timeout) ? INT_MAX : (int) max_timeout;
+  return (INT_MAX <= max_timeout) ? INT_MAX : (int) max_timeout;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]