libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 6285d14f09884628f48af6c23eb9e1c470465314
parent 0489469cd6b6076e972d64023e134846750bd0b6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 29 Jan 2024 22:11:44 +0100

libcurl tests: fixed compiler warnings

Diffstat:
Msrc/testcurl/test_add_conn.c | 6+++++-
Msrc/testcurl/test_concurrent_stop.c | 2+-
Msrc/testcurl/test_digestauth_emu_ext.c | 2+-
Msrc/testcurl/test_get_chunked.c | 12++++++------
4 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c @@ -763,7 +763,8 @@ startTestMhdDaemon (enum testMhdThreadsType thrType, MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL, MHD_OPTION_END); break; - default: + case testMhdThreadInternal: + case testMhdThreadInternalPerConnection: d = MHD_start_daemon (((unsigned int) thrType) | ((unsigned int) pollType) | MHD_USE_ITC | (no_listen ? MHD_USE_NO_LISTEN_SOCKET : 0) @@ -773,6 +774,9 @@ startTestMhdDaemon (enum testMhdThreadsType thrType, MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL, MHD_OPTION_END); break; + default: + abort (); + break; } if (NULL == d) diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c @@ -96,7 +96,7 @@ thread_watchdog (void *param) } -pthread_t watchdog_tid; +static pthread_t watchdog_tid; static void start_watchdog (int timeout, const char *obj_name) diff --git a/src/testcurl/test_digestauth_emu_ext.c b/src/testcurl/test_digestauth_emu_ext.c @@ -266,7 +266,7 @@ static int verbose; static int oldapi; /* Static helper variables */ -struct curl_slist *curl_headers; +static struct curl_slist *curl_headers; static void test_global_init (void) diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c @@ -60,32 +60,32 @@ /** * Use "Connection: close" header? */ -int conn_close; +static int conn_close; /** * Use static string response instead of callback-generated? */ -int resp_string; +static int resp_string; /** * Use response with known size? */ -int resp_sized; +static int resp_sized; /** * Use empty (zero-sized) response? */ -int resp_empty; +static int resp_empty; /** * Force chunked response by response header? */ -int chunked_forced; +static int chunked_forced; /** * MHD port used for testing */ -uint16_t port_global; +static uint16_t port_global; struct headers_check_result