gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 01/10: connection.c: fixed compiler warnings


From: gnunet
Subject: [libmicrohttpd] 01/10: connection.c: fixed compiler warnings
Date: Tue, 31 May 2022 19:38:10 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 3ab4375160fb18979fe67950f863313fa65a424f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 31 16:07:07 2022 +0300

    connection.c: fixed compiler warnings
---
 src/microhttpd/connection.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9977ea6b..d74535cf 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2824,6 +2824,9 @@ parse_cookies_string_strict (char *str,
     {
       value_start = 0;
       value_len = 0;
+#ifdef _DEBUG
+      val_quoted = false; /* This assignment used in assert */
+#endif
     }
     else
     {
@@ -5327,13 +5330,13 @@ MHD_get_connection_info (struct MHD_Connection 
*connection,
     if (NULL == connection->tls_session)
       return NULL;
     connection->connection_info_dummy.cipher_algorithm =
-      gnutls_cipher_get (connection->tls_session);
+      (int) gnutls_cipher_get (connection->tls_session);
     return &connection->connection_info_dummy;
   case MHD_CONNECTION_INFO_PROTOCOL:
     if (NULL == connection->tls_session)
       return NULL;
     connection->connection_info_dummy.protocol =
-      gnutls_protocol_get_version (connection->tls_session);
+      (int) gnutls_protocol_get_version (connection->tls_session);
     return &connection->connection_info_dummy;
   case MHD_CONNECTION_INFO_GNUTLS_SESSION:
     if (NULL == connection->tls_session)

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