aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-14 21:30:05 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-14 21:30:05 +0300
commit80eb22434c1a0cb359e710706b6e9aa052c1c6d6 (patch)
tree9d1e0bfc4def972b83a8c7cfac14c1ac96cf17e4
parent977d01df7adcf76883171537b527f29046153029 (diff)
downloadlibmicrohttpd-80eb22434c1a0cb359e710706b6e9aa052c1c6d6.tar.gz
libmicrohttpd-80eb22434c1a0cb359e710706b6e9aa052c1c6d6.zip
src/microhttpd/test_*: more compiler warning fixed
-rw-r--r--src/microhttpd/test_postprocessor.c2
-rw-r--r--src/microhttpd/test_postprocessor_amp.c2
-rw-r--r--src/microhttpd/test_shutdown_select.c4
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 */
57struct expResult exp_results[] = { 57static 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
8uint64_t num_errors; 8static uint64_t num_errors;
9 9
10static enum MHD_Result 10static enum MHD_Result
11check_post (void *cls, enum MHD_ValueKind kind, const char *key, 11check_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
222MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_ 222static MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
223select_thread (void *data) 223select_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
243MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_ 243static MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
244poll_thread (void *data) 244poll_thread (void *data)
245{ 245{
246 /* use poll() like in daemon.c */ 246 /* use poll() like in daemon.c */