[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 05/10: Fixed wrong variable type used for result of gnut
From: |
gnunet |
Subject: |
[libmicrohttpd] 05/10: Fixed wrong variable type used for result of gnutls_priority_init() |
Date: |
Tue, 31 May 2022 19:38:14 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 7422951e9bf82d036ecef2341de868838d2e1ce1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 31 19:22:38 2022 +0300
Fixed wrong variable type used for result of gnutls_priority_init()
---
src/microhttpd/daemon.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 9af79678..151a2673 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5847,7 +5847,6 @@ parse_options_va (struct MHD_Daemon *daemon,
unsigned int i;
unsigned int uv;
#ifdef HTTPS_SUPPORT
- enum MHD_Result ret;
const char *pstr;
#if GNUTLS_VERSION_MAJOR >= 3
gnutls_certificate_retrieve_function2 *pgcrf;
@@ -6097,17 +6096,18 @@ parse_options_va (struct MHD_Daemon *daemon,
const char *);
if (0 != (daemon->options & MHD_USE_TLS))
{
+ int init_res;
gnutls_priority_deinit (daemon->priority_cache);
- ret = gnutls_priority_init (&daemon->priority_cache,
- pstr,
- NULL);
- if (GNUTLS_E_SUCCESS != ret)
+ init_res = gnutls_priority_init (&daemon->priority_cache,
+ pstr,
+ NULL);
+ if (GNUTLS_E_SUCCESS != init_res)
{
#ifdef HAVE_MESSAGES
MHD_DLOG (daemon,
_ ("Setting priorities to `%s' failed: %s\n"),
pstr,
- gnutls_strerror (ret));
+ gnutls_strerror (init_res));
#endif
daemon->priority_cache = NULL;
return MHD_NO;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (afb8ed41 -> 1b8c52f1), gnunet, 2022/05/31
- [libmicrohttpd] 01/10: connection.c: fixed compiler warnings, gnunet, 2022/05/31
- [libmicrohttpd] 02/10: MHD_FIND_ADD_CC_{C,LD}FLAG_IFELSE: added new autoconf macros, gnunet, 2022/05/31
- [libmicrohttpd] 04/10: MHD_get_timeout*(): improved doxy, gnunet, 2022/05/31
- [libmicrohttpd] 05/10: Fixed wrong variable type used for result of gnutls_priority_init(),
gnunet <=
- [libmicrohttpd] 06/10: configure: disabled one more warning on clang, gnunet, 2022/05/31
- [libmicrohttpd] 07/10: mhd_sockets: muted compiler warning with very minor optimisation, gnunet, 2022/05/31
- [libmicrohttpd] 08/10: daemon.c: fixed possible uninitialized value, gnunet, 2022/05/31
- [libmicrohttpd] 03/10: configure: added more workarounds for clang, gnunet, 2022/05/31
- [libmicrohttpd] 09/10: Fixed 'int' instead of 'MHD_Result', gnunet, 2022/05/31
- [libmicrohttpd] 10/10: daemon: muted compiler warning, refactored code for readability, gnunet, 2022/05/31