commit 3ab4375160fb18979fe67950f863313fa65a424f
parent afb8ed41f85a66c315d353a53e92bc1e2e914488
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 31 May 2022 16:07:07 +0300
connection.c: fixed compiler warnings
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git 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)