[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix a few more compi
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix a few more compiler warnings |
Date: |
Sat, 18 Aug 2018 11:30:20 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new b4afd3fc fix a few more compiler warnings
b4afd3fc is described below
commit b4afd3fce6bd3bb8470385ca153e7a520c9ace0a
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Aug 18 11:30:17 2018 +0200
fix a few more compiler warnings
---
src/microhttpd/daemon.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index c70a405a..cd7f91c7 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2164,8 +2164,8 @@ psk_gnutls_adapter (gnutls_session_t session,
if (NULL == connection)
{
#ifdef HAVE_MESSAGES
- MHD_DLOG (daemon,
- _("Internal server error. This should be impossible.\n"));
+ /* Cannot use our logger, we don't even have "daemon" */
+ MHD_PANIC (_("Internal server error. This should be impossible.\n"));
#endif
return -1;
}
@@ -3274,10 +3274,11 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
else
{
const time_t second_left = earliest_deadline - now;
- if (second_left > ULLONG_MAX / 1000) /* Ignore compiler warning:
'second_left' is always positive. */
+
+ if (((unsigned long long)second_left) > ULLONG_MAX / 1000)
*timeout = ULLONG_MAX;
else
- *timeout = 1000LL * second_left;
+ *timeout = 1000LLU * (unsigned long long) second_left;
}
return MHD_YES;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: fix a few more compiler warnings,
gnunet <=