aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-31 16:07:07 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-05-31 20:19:12 +0300
commit3ab4375160fb18979fe67950f863313fa65a424f (patch)
tree3cf7353b957ae3274afa457197035a436422a55a
parentafb8ed41f85a66c315d353a53e92bc1e2e914488 (diff)
downloadlibmicrohttpd-3ab4375160fb18979fe67950f863313fa65a424f.tar.gz
libmicrohttpd-3ab4375160fb18979fe67950f863313fa65a424f.zip
connection.c: fixed compiler warnings
-rw-r--r--src/microhttpd/connection.c7
1 files 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,
2824 { 2824 {
2825 value_start = 0; 2825 value_start = 0;
2826 value_len = 0; 2826 value_len = 0;
2827#ifdef _DEBUG
2828 val_quoted = false; /* This assignment used in assert */
2829#endif
2827 } 2830 }
2828 else 2831 else
2829 { 2832 {
@@ -5327,13 +5330,13 @@ MHD_get_connection_info (struct MHD_Connection *connection,
5327 if (NULL == connection->tls_session) 5330 if (NULL == connection->tls_session)
5328 return NULL; 5331 return NULL;
5329 connection->connection_info_dummy.cipher_algorithm = 5332 connection->connection_info_dummy.cipher_algorithm =
5330 gnutls_cipher_get (connection->tls_session); 5333 (int) gnutls_cipher_get (connection->tls_session);
5331 return &connection->connection_info_dummy; 5334 return &connection->connection_info_dummy;
5332 case MHD_CONNECTION_INFO_PROTOCOL: 5335 case MHD_CONNECTION_INFO_PROTOCOL:
5333 if (NULL == connection->tls_session) 5336 if (NULL == connection->tls_session)
5334 return NULL; 5337 return NULL;
5335 connection->connection_info_dummy.protocol = 5338 connection->connection_info_dummy.protocol =
5336 gnutls_protocol_get_version (connection->tls_session); 5339 (int) gnutls_protocol_get_version (connection->tls_session);
5337 return &connection->connection_info_dummy; 5340 return &connection->connection_info_dummy;
5338 case MHD_CONNECTION_INFO_GNUTLS_SESSION: 5341 case MHD_CONNECTION_INFO_GNUTLS_SESSION:
5339 if (NULL == connection->tls_session) 5342 if (NULL == connection->tls_session)