[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: test_add_conn: Muted analyzer war
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: test_add_conn: Muted analyzer warning |
Date: |
Thu, 29 Oct 2020 18:24:10 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 0777af76 test_add_conn: Muted analyzer warning
0777af76 is described below
commit 0777af766caf32ccb1c04327c0bc37f950768244
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 29 20:16:41 2020 +0300
test_add_conn: Muted analyzer warning
---
src/testcurl/test_add_conn.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c
index b91ec3c9..6b9ef45d 100644
--- a/src/testcurl/test_add_conn.c
+++ b/src/testcurl/test_add_conn.c
@@ -797,6 +797,7 @@ testExternalGet (void)
int a_port = 0; /* Additional listening socket port */
struct addConnParam aParam;
int ret = 0; /* Return value of the test */
+ const int c_no_listen = no_listen; /* Local const value to mute analyzer */
d = startTestMhdDaemon (testMhdThreadExternal, testMhdPollBySelect, &d_port);
@@ -815,7 +816,7 @@ testExternalGet (void)
abort (); /* Not possible with "external poll" as connections are directly
added to the daemon processing in the mode. */
- if (! no_listen)
+ if (! c_no_listen)
c_d = curlEasyInitForTest ("http://127.0.0.1" EXPECTED_URI_FULL_PATH,
d_port, &cbc_d);
@@ -828,7 +829,7 @@ testExternalGet (void)
fprintf (stderr, "curl_multi_init() failed.\n");
_exit (99);
}
- if (! no_listen)
+ if (! c_no_listen)
{
if (CURLM_OK != curl_multi_add_handle (multi, c_d))
{
@@ -940,7 +941,7 @@ testExternalGet (void)
MHD_stop_daemon (d);
(void) MHD_socket_close_ (aParam.lstn_sk);
- if (! no_listen)
+ if (! c_no_listen)
{
curl_multi_remove_handle (multi, c_d);
curl_easy_cleanup (c_d);
@@ -1038,11 +1039,12 @@ testStopRace (enum testMhdPollType pollType)
MHD_socket fd2;
struct addConnParam aParam;
int ret = 0; /* Return value of the test */
+ const int c_no_listen = no_listen; /* Local const value to mute analyzer */
d = startTestMhdDaemon (testMhdThreadInternal, pollType,
&d_port);
- if (! no_listen)
+ if (! c_no_listen)
{
fd1 = socket (PF_INET, SOCK_STREAM, IPPROTO_TCP);
if (MHD_INVALID_SOCKET == fd1)
@@ -1076,7 +1078,7 @@ testStopRace (enum testMhdPollType pollType)
MHD_stop_daemon (d);
- if (! no_listen)
+ if (! c_no_listen)
(void) MHD_socket_close_ (fd1);
(void) MHD_socket_close_ (aParam.lstn_sk);
(void) MHD_socket_close_ (fd2);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: test_add_conn: Muted analyzer warning,
gnunet <=