[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] GNU libmicrohttpd branch master updated. 9b
From: |
gitolite |
Subject: |
[GNUnet-SVN] [libmicrohttpd] GNU libmicrohttpd branch master updated. 9b7bc3d8bd4042de9288dffe09fd2660293b1d9d |
Date: |
Mon, 17 Oct 2016 15:49:24 +0200 (CEST) |
The branch, master has been updated
via 9b7bc3d8bd4042de9288dffe09fd2660293b1d9d (commit)
from 79309bb6026706229fcb651db8b8b37f4ed12885 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9b7bc3d8bd4042de9288dffe09fd2660293b1d9d
Author: Christian Grothoff <address@hidden>
Date: Mon Oct 17 15:49:22 2016 +0200
fix clang warnings
-----------------------------------------------------------------------
Summary of changes:
doc/examples/tlsauthentication.c | 4 ++++
src/microhttpd/connection.c | 1 +
src/microhttpd/daemon.c | 5 ++---
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
index b0b3217..4147813 100644
--- a/doc/examples/tlsauthentication.c
+++ b/doc/examples/tlsauthentication.c
@@ -246,6 +246,10 @@ main ()
if ((key_pem == NULL) || (cert_pem == NULL))
{
printf ("The key/certificate files could not be read.\n");
+ if (NULL != key_pem)
+ free (key_pem);
+ if (NULL != cert_pem)
+ free (cert_pem);
return 1;
}
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index e4a9cf2..7287b7e 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -977,6 +977,7 @@ build_header_response (struct MHD_Connection *connection)
must_add_chunked_encoding = MHD_NO;
must_add_keep_alive = MHD_NO;
must_add_content_length = MHD_NO;
+ response_has_keepalive = NULL;
switch (connection->state)
{
case MHD_CONNECTION_FOOTERS_RECEIVED:
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 952498a..d3fc81b 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3584,9 +3584,8 @@ MHD_epoll (struct MHD_Daemon *daemon,
/* we handle resumes here because we may have ready connections
that will not be placed into the epoll list immediately. */
- if ( (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME))
&&
- (MHD_YES == resume_suspended_connections (daemon)) )
- may_block = MHD_NO;
+ if (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME))
+ (void) resume_suspended_connections (daemon);
/* process events for connections */
while (NULL != (pos = daemon->eready_tail))
hooks/post-receive
--
GNU libmicrohttpd
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] GNU libmicrohttpd branch master updated. 9b7bc3d8bd4042de9288dffe09fd2660293b1d9d,
gitolite <=