gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 300/335: Fixed compiler warnings


From: gnunet
Subject: [libmicrohttpd] 300/335: Fixed compiler warnings
Date: Sat, 27 Jul 2024 22:03:16 +0200

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

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit 60841a720a6b16f51390562e77b5a248498bd17a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jul 23 18:31:14 2024 +0200

    Fixed compiler warnings
---
 src/mhd2/daemon_start.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mhd2/daemon_start.c b/src/mhd2/daemon_start.c
index d5232ae0..e91b980b 100644
--- a/src/mhd2/daemon_start.c
+++ b/src/mhd2/daemon_start.c
@@ -1585,7 +1585,7 @@ allocate_events (struct MHD_Daemon *restrict d)
     mhd_assert (0 == d->events.data.epoll.num_elements);
     if (num_elements > d->conns.cfg.count_limit) /* Check for value overflow */
     {
-      const size_t upper_limit = (sizeof(void*) >= 8) ? 4096 : 1024;
+      const unsigned int upper_limit = (sizeof(void*) >= 8) ? 4096 : 1024;
 
       /* Trade neglectable performance penalty for memory saving */
       /* Very large amount of new events processed in batches */
@@ -1721,7 +1721,7 @@ init_itc (struct MHD_Daemon *restrict d)
     mhd_LOG_MSG (d, MHD_SC_ITC_FD_OUTSIDE_OF_SET_RANGE, \
                  "The inter-thread communication FD value is " \
                  "higher than allowed");
-    mhd_itc_destroy (d->threading.itc);
+    (void) mhd_itc_destroy (d->threading.itc);
     mhd_itc_set_invalid (&(d->threading.itc));
     return MHD_SC_ITC_FD_OUTSIDE_OF_SET_RANGE;
   }

-- 
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]