aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2024-01-29 22:11:44 +0100
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2024-01-29 22:11:44 +0100
commit6285d14f09884628f48af6c23eb9e1c470465314 (patch)
tree73556a750891191364a6f0cf95a19b182b352435
parent0489469cd6b6076e972d64023e134846750bd0b6 (diff)
downloadlibmicrohttpd-6285d14f09884628f48af6c23eb9e1c470465314.tar.gz
libmicrohttpd-6285d14f09884628f48af6c23eb9e1c470465314.zip
libcurl tests: fixed compiler warnings
-rw-r--r--src/testcurl/test_add_conn.c6
-rw-r--r--src/testcurl/test_concurrent_stop.c2
-rw-r--r--src/testcurl/test_digestauth_emu_ext.c2
-rw-r--r--src/testcurl/test_get_chunked.c12
4 files changed, 13 insertions, 9 deletions
diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c
index 503ad89e..cf68e6d6 100644
--- a/src/testcurl/test_add_conn.c
+++ b/src/testcurl/test_add_conn.c
@@ -763,7 +763,8 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
763 MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL, 763 MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL,
764 MHD_OPTION_END); 764 MHD_OPTION_END);
765 break; 765 break;
766 default: 766 case testMhdThreadInternal:
767 case testMhdThreadInternalPerConnection:
767 d = MHD_start_daemon (((unsigned int) thrType) | ((unsigned int) pollType) 768 d = MHD_start_daemon (((unsigned int) thrType) | ((unsigned int) pollType)
768 | MHD_USE_ITC 769 | MHD_USE_ITC
769 | (no_listen ? MHD_USE_NO_LISTEN_SOCKET : 0) 770 | (no_listen ? MHD_USE_NO_LISTEN_SOCKET : 0)
@@ -773,6 +774,9 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
773 MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL, 774 MHD_OPTION_URI_LOG_CALLBACK, &log_cb, NULL,
774 MHD_OPTION_END); 775 MHD_OPTION_END);
775 break; 776 break;
777 default:
778 abort ();
779 break;
776 } 780 }
777 781
778 if (NULL == d) 782 if (NULL == d)
diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c
index 9c7df42f..eed6bf9a 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -96,7 +96,7 @@ thread_watchdog (void *param)
96} 96}
97 97
98 98
99pthread_t watchdog_tid; 99static pthread_t watchdog_tid;
100 100
101static void 101static void
102start_watchdog (int timeout, const char *obj_name) 102start_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
index 8506a567..033be0cf 100644
--- a/src/testcurl/test_digestauth_emu_ext.c
+++ b/src/testcurl/test_digestauth_emu_ext.c
@@ -266,7 +266,7 @@ static int verbose;
266static int oldapi; 266static int oldapi;
267 267
268/* Static helper variables */ 268/* Static helper variables */
269struct curl_slist *curl_headers; 269static struct curl_slist *curl_headers;
270 270
271static void 271static void
272test_global_init (void) 272test_global_init (void)
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index 9ffa8041..87b07b7e 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -60,32 +60,32 @@
60/** 60/**
61 * Use "Connection: close" header? 61 * Use "Connection: close" header?
62 */ 62 */
63int conn_close; 63static int conn_close;
64 64
65/** 65/**
66 * Use static string response instead of callback-generated? 66 * Use static string response instead of callback-generated?
67 */ 67 */
68int resp_string; 68static int resp_string;
69 69
70/** 70/**
71 * Use response with known size? 71 * Use response with known size?
72 */ 72 */
73int resp_sized; 73static int resp_sized;
74 74
75/** 75/**
76 * Use empty (zero-sized) response? 76 * Use empty (zero-sized) response?
77 */ 77 */
78int resp_empty; 78static int resp_empty;
79 79
80/** 80/**
81 * Force chunked response by response header? 81 * Force chunked response by response header?
82 */ 82 */
83int chunked_forced; 83static int chunked_forced;
84 84
85/** 85/**
86 * MHD port used for testing 86 * MHD port used for testing
87 */ 87 */
88uint16_t port_global; 88static uint16_t port_global;
89 89
90 90
91struct headers_check_result 91struct headers_check_result