commit 80eb22434c1a0cb359e710706b6e9aa052c1c6d6
parent 977d01df7adcf76883171537b527f29046153029
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 14 Jun 2022 21:30:05 +0300
src/microhttpd/test_*: more compiler warning fixed
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c
@@ -54,7 +54,7 @@ struct expResult
* Each series of checks should be terminated by
* five NULL-entries.
*/
-struct expResult exp_results[] = {
+static struct expResult exp_results[] = {
#define URL_NOVALUE1_DATA "abc&x=5"
#define URL_NOVALUE1_START 0
{"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
@@ -5,7 +5,7 @@
#include <string.h>
#include <stdio.h>
-uint64_t num_errors;
+static uint64_t num_errors;
static enum MHD_Result
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
@@ -219,7 +219,7 @@ start_socket_listen (int domain)
}
-MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
+static MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
select_thread (void *data)
{
/* use select() like in daemon.c */
@@ -240,7 +240,7 @@ select_thread (void *data)
#ifdef HAVE_POLL
-MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
+static MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
poll_thread (void *data)
{
/* use poll() like in daemon.c */