diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-06-14 21:30:05 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-06-14 21:30:05 +0300 |
commit | 80eb22434c1a0cb359e710706b6e9aa052c1c6d6 (patch) | |
tree | 9d1e0bfc4def972b83a8c7cfac14c1ac96cf17e4 | |
parent | 977d01df7adcf76883171537b527f29046153029 (diff) | |
download | libmicrohttpd-80eb22434c1a0cb359e710706b6e9aa052c1c6d6.tar.gz libmicrohttpd-80eb22434c1a0cb359e710706b6e9aa052c1c6d6.zip |
src/microhttpd/test_*: more compiler warning fixed
-rw-r--r-- | src/microhttpd/test_postprocessor.c | 2 | ||||
-rw-r--r-- | src/microhttpd/test_postprocessor_amp.c | 2 | ||||
-rw-r--r-- | src/microhttpd/test_shutdown_select.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c index 50dfd534..73607eaf 100644 --- a/src/microhttpd/test_postprocessor.c +++ b/src/microhttpd/test_postprocessor.c | |||
@@ -54,7 +54,7 @@ struct expResult | |||
54 | * Each series of checks should be terminated by | 54 | * Each series of checks should be terminated by |
55 | * five NULL-entries. | 55 | * five NULL-entries. |
56 | */ | 56 | */ |
57 | struct expResult exp_results[] = { | 57 | static struct expResult exp_results[] = { |
58 | #define URL_NOVALUE1_DATA "abc&x=5" | 58 | #define URL_NOVALUE1_DATA "abc&x=5" |
59 | #define URL_NOVALUE1_START 0 | 59 | #define URL_NOVALUE1_START 0 |
60 | {"abc", NULL, NULL, NULL, /* NULL */ ""}, /* change after API update */ | 60 | {"abc", NULL, NULL, NULL, /* NULL */ ""}, /* change after API update */ |
diff --git a/src/microhttpd/test_postprocessor_amp.c b/src/microhttpd/test_postprocessor_amp.c index c72b85f3..1ae61691 100644 --- a/src/microhttpd/test_postprocessor_amp.c +++ b/src/microhttpd/test_postprocessor_amp.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <string.h> | 5 | #include <string.h> |
6 | #include <stdio.h> | 6 | #include <stdio.h> |
7 | 7 | ||
8 | uint64_t num_errors; | 8 | static uint64_t num_errors; |
9 | 9 | ||
10 | static enum MHD_Result | 10 | static enum MHD_Result |
11 | check_post (void *cls, enum MHD_ValueKind kind, const char *key, | 11 | check_post (void *cls, enum MHD_ValueKind kind, const char *key, |
diff --git a/src/microhttpd/test_shutdown_select.c b/src/microhttpd/test_shutdown_select.c index a5575537..437d27a9 100644 --- a/src/microhttpd/test_shutdown_select.c +++ b/src/microhttpd/test_shutdown_select.c | |||
@@ -219,7 +219,7 @@ start_socket_listen (int domain) | |||
219 | } | 219 | } |
220 | 220 | ||
221 | 221 | ||
222 | MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_ | 222 | static MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_ |
223 | select_thread (void *data) | 223 | select_thread (void *data) |
224 | { | 224 | { |
225 | /* use select() like in daemon.c */ | 225 | /* use select() like in daemon.c */ |
@@ -240,7 +240,7 @@ select_thread (void *data) | |||
240 | 240 | ||
241 | 241 | ||
242 | #ifdef HAVE_POLL | 242 | #ifdef HAVE_POLL |
243 | MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_ | 243 | static MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_ |
244 | poll_thread (void *data) | 244 | poll_thread (void *data) |
245 | { | 245 | { |
246 | /* use poll() like in daemon.c */ | 246 | /* use poll() like in daemon.c */ |