[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 09/09: test_start_stop: fixed compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 09/09: test_start_stop: fixed compiler warnings |
Date: |
Mon, 13 Jun 2022 20:28:40 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 9668d71f4496fba7d80e34792b8e732f36a08a3f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jun 13 21:27:51 2022 +0300
test_start_stop: fixed compiler warnings
---
src/microhttpd/test_start_stop.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/microhttpd/test_start_stop.c b/src/microhttpd/test_start_stop.c
index fec35e2c..a64f3011 100644
--- a/src/microhttpd/test_start_stop.c
+++ b/src/microhttpd/test_start_stop.c
@@ -53,14 +53,14 @@ ahc_echo (void *cls,
#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)
-static int
-testInternalGet (int poll_flag)
+static unsigned int
+testInternalGet (unsigned int poll_flag)
{
struct MHD_Daemon *d;
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
| poll_flag,
- 0, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END);
+ 0, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END);
if (d == NULL)
return 1;
MHD_stop_daemon (d);
@@ -68,15 +68,15 @@ testInternalGet (int poll_flag)
}
-static int
-testMultithreadedGet (int poll_flag)
+static unsigned int
+testMultithreadedGet (unsigned int poll_flag)
{
struct MHD_Daemon *d;
d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION
| MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
| poll_flag,
- 0, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END);
+ 0, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END);
if (d == NULL)
return 2;
MHD_stop_daemon (d);
@@ -84,14 +84,14 @@ testMultithreadedGet (int poll_flag)
}
-static int
-testMultithreadedPoolGet (int poll_flag)
+static unsigned int
+testMultithreadedPoolGet (unsigned int poll_flag)
{
struct MHD_Daemon *d;
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
| poll_flag,
- 0, NULL, NULL, &ahc_echo, "GET",
+ 0, NULL, NULL, &ahc_echo, NULL,
MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT,
MHD_OPTION_END);
if (d == NULL)
@@ -104,14 +104,14 @@ testMultithreadedPoolGet (int poll_flag)
#endif
-static int
-testExternalGet ()
+static unsigned int
+testExternalGet (void)
{
struct MHD_Daemon *d;
d = MHD_start_daemon (MHD_USE_ERROR_LOG,
0, NULL, NULL,
- &ahc_echo, "GET",
+ &ahc_echo, NULL,
MHD_OPTION_END);
if (NULL == d)
return 8;
@@ -151,5 +151,5 @@ main (int argc,
fprintf (stderr,
"Error (code: %u)\n",
errorCount);
- return errorCount != 0; /* 0 == pass */
+ return (errorCount == 0) ? 0 : 1; /* 0 == pass */
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (6884fa83 -> 9668d71f), gnunet, 2022/06/13
- [libmicrohttpd] 04/09: test_postprocessor{,_amp,_large}: fixed compiler warnings, fixed extra-long strings, gnunet, 2022/06/13
- [libmicrohttpd] 02/09: postprocessor.c: added assert, gnunet, 2022/06/13
- [libmicrohttpd] 03/09: test_postprocessor_md: removed include of .c file, fixed extra long lines, gnunet, 2022/06/13
- [libmicrohttpd] 08/09: test_http_reasons: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 09/09: test_start_stop: fixed compiler warnings,
gnunet <=
- [libmicrohttpd] 05/09: test_str: minor refactoring, fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 01/09: postprocessor.h: added new internal header, gnunet, 2022/06/13
- [libmicrohttpd] 07/09: test_daemon: fixed compiler warnings, gnunet, 2022/06/13
- [libmicrohttpd] 06/09: test_str_token{,s,s_remove}: fixed compiler warnings, gnunet, 2022/06/13