diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-29 22:11:44 +0100 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-29 22:11:44 +0100 |
commit | 6285d14f09884628f48af6c23eb9e1c470465314 (patch) | |
tree | 73556a750891191364a6f0cf95a19b182b352435 | |
parent | 0489469cd6b6076e972d64023e134846750bd0b6 (diff) | |
download | libmicrohttpd-6285d14f09884628f48af6c23eb9e1c470465314.tar.gz libmicrohttpd-6285d14f09884628f48af6c23eb9e1c470465314.zip |
libcurl tests: fixed compiler warnings
-rw-r--r-- | src/testcurl/test_add_conn.c | 6 | ||||
-rw-r--r-- | src/testcurl/test_concurrent_stop.c | 2 | ||||
-rw-r--r-- | src/testcurl/test_digestauth_emu_ext.c | 2 | ||||
-rw-r--r-- | src/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 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 | ||
99 | pthread_t watchdog_tid; | 99 | static pthread_t watchdog_tid; |
100 | 100 | ||
101 | static void | 101 | static void |
102 | start_watchdog (int timeout, const char *obj_name) | 102 | 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 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; | |||
266 | static int oldapi; | 266 | static int oldapi; |
267 | 267 | ||
268 | /* Static helper variables */ | 268 | /* Static helper variables */ |
269 | struct curl_slist *curl_headers; | 269 | static struct curl_slist *curl_headers; |
270 | 270 | ||
271 | static void | 271 | static void |
272 | test_global_init (void) | 272 | test_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 | */ |
63 | int conn_close; | 63 | static 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 | */ |
68 | int resp_string; | 68 | static int resp_string; |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Use response with known size? | 71 | * Use response with known size? |
72 | */ | 72 | */ |
73 | int resp_sized; | 73 | static int resp_sized; |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Use empty (zero-sized) response? | 76 | * Use empty (zero-sized) response? |
77 | */ | 77 | */ |
78 | int resp_empty; | 78 | static int resp_empty; |
79 | 79 | ||
80 | /** | 80 | /** |
81 | * Force chunked response by response header? | 81 | * Force chunked response by response header? |
82 | */ | 82 | */ |
83 | int chunked_forced; | 83 | static int chunked_forced; |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * MHD port used for testing | 86 | * MHD port used for testing |
87 | */ | 87 | */ |
88 | uint16_t port_global; | 88 | static uint16_t port_global; |
89 | 89 | ||
90 | 90 | ||
91 | struct headers_check_result | 91 | struct headers_check_result |