commit 81733d43e89dde0e69f6657d85aca9500563d44b
parent 53207f93b0886adddf9bc0fa6ac1ba88db7a6682
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 30 Sep 2022 15:33:23 +0300
testcurl: fixed functions declarations
Diffstat:
21 files changed, 67 insertions(+), 67 deletions(-)
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
@@ -95,7 +95,7 @@ static unsigned long long start_time;
* @return current time in ms
*/
static unsigned long long
-now ()
+now (void)
{
struct timeval tv;
@@ -109,7 +109,7 @@ now ()
* Start the timer.
*/
static void
-start_timer ()
+start_timer (void)
{
start_time = now ();
}
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c
@@ -98,7 +98,7 @@ static volatile int signal_done;
* @return current time in ms
*/
static unsigned long long
-now ()
+now (void)
{
struct timeval tv;
@@ -112,7 +112,7 @@ now ()
* Start the timer.
*/
static void
-start_timer ()
+start_timer (void)
{
start_time = now ();
}
diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c
@@ -245,7 +245,7 @@ do_gets (void *param)
}
-pthread_t
+static pthread_t
start_gets (int port)
{
pthread_t tid;
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c
@@ -124,7 +124,7 @@ ahc_echo (void *cls,
static int
-testInternalDelete ()
+testInternalDelete (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -199,7 +199,7 @@ testInternalDelete ()
static int
-testMultithreadedDelete ()
+testMultithreadedDelete (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -276,7 +276,7 @@ testMultithreadedDelete ()
static int
-testMultithreadedPoolDelete ()
+testMultithreadedPoolDelete (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -354,7 +354,7 @@ testMultithreadedPoolDelete ()
static int
-testExternalDelete ()
+testExternalDelete (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
@@ -393,7 +393,7 @@ testMultithreadedPoolGet (int poll_flag)
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
@@ -93,7 +93,7 @@ struct headers_check_result
int found_footer;
};
-size_t
+static size_t
lcurl_hdr_callback (char *buffer, size_t size, size_t nitems,
void *userdata)
{
@@ -307,7 +307,7 @@ validate (struct CBC cbc, int ebase)
static int
-testInternalGet ()
+testInternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -389,7 +389,7 @@ testInternalGet ()
static int
-testMultithreadedGet ()
+testMultithreadedGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -472,7 +472,7 @@ testMultithreadedGet ()
static int
-testMultithreadedPoolGet ()
+testMultithreadedPoolGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -556,7 +556,7 @@ testMultithreadedPoolGet ()
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_get_close_keep_alive.c b/src/testcurl/test_get_close_keep_alive.c
@@ -238,7 +238,7 @@ struct headers_check_result
int found_conn_keep_alive;
};
-size_t
+static size_t
lcurl_hdr_callback (char *buffer, size_t size, size_t nitems,
void *userdata)
{
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c
@@ -332,7 +332,7 @@ testInternalGet (bool contiguous)
static int
-testMultithreadedGet ()
+testMultithreadedGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -404,7 +404,7 @@ testMultithreadedGet ()
static int
-testMultithreadedPoolGet ()
+testMultithreadedPoolGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -477,7 +477,7 @@ testMultithreadedPoolGet ()
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -660,7 +660,7 @@ testExternalGet ()
static int
-testUnknownPortGet ()
+testUnknownPortGet (void)
{
struct MHD_Daemon *d;
const union MHD_DaemonInfo *di;
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c
@@ -153,7 +153,7 @@ ahc_echo (void *cls,
static int
-testInternalGet ()
+testInternalGet (void)
{
struct MHD_Daemon *d;
pid_t curl;
@@ -201,7 +201,7 @@ testInternalGet ()
static int
-testMultithreadedGet ()
+testMultithreadedGet (void)
{
struct MHD_Daemon *d;
pid_t curl;
@@ -264,7 +264,7 @@ testMultithreadedGet ()
static int
-testMultithreadedPoolGet ()
+testMultithreadedPoolGet (void)
{
struct MHD_Daemon *d;
pid_t curl;
@@ -314,7 +314,7 @@ testMultithreadedPoolGet ()
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
fd_set rs;
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
@@ -120,7 +120,7 @@ ahc_echo (void *cls,
static int
-testInternalGet ()
+testInternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -191,7 +191,7 @@ testInternalGet ()
static int
-testMultithreadedGet ()
+testMultithreadedGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -263,7 +263,7 @@ testMultithreadedGet ()
static int
-testMultithreadedPoolGet ()
+testMultithreadedPoolGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -336,7 +336,7 @@ testMultithreadedPoolGet ()
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -527,7 +527,7 @@ testExternalGet ()
static int
-testUnknownPortGet ()
+testUnknownPortGet (void)
{
struct MHD_Daemon *d;
const union MHD_DaemonInfo *di;
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c
@@ -109,7 +109,7 @@ ahc_echo (void *cls,
static int
-testMultithreadedGet ()
+testMultithreadedGet (void)
{
struct MHD_Daemon *d;
char buf[2048];
@@ -224,7 +224,7 @@ testMultithreadedGet ()
static int
-testMultithreadedPoolGet ()
+testMultithreadedPoolGet (void)
{
struct MHD_Daemon *d;
char buf[2048];
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
@@ -168,7 +168,7 @@ struct CBC
size_t size;
};
-char *
+static char *
alloc_init (size_t buf_size)
{
static const char template[] =
diff --git a/src/testcurl/test_patch.c b/src/testcurl/test_patch.c
@@ -157,7 +157,7 @@ setup_curl (long port,
static int
-testInternalPut ()
+testInternalPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -216,7 +216,7 @@ testInternalPut ()
static int
-testMultithreadedPut ()
+testMultithreadedPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -277,7 +277,7 @@ testMultithreadedPut ()
static int
-testMultithreadedPoolPut ()
+testMultithreadedPoolPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -339,7 +339,7 @@ testMultithreadedPoolPut ()
static int
-testExternalPut ()
+testExternalPut (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
@@ -166,7 +166,7 @@ ahc_echo (void *cls,
static int
-testInternalPost ()
+testInternalPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -242,7 +242,7 @@ testInternalPost ()
static int
-testMultithreadedPost ()
+testMultithreadedPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -319,7 +319,7 @@ testMultithreadedPost ()
static int
-testMultithreadedPoolPost ()
+testMultithreadedPoolPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -396,7 +396,7 @@ testMultithreadedPoolPost ()
static int
-testExternalPost ()
+testExternalPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -803,7 +803,7 @@ testMultithreadedPostCancelPart (int flags)
static int
-testMultithreadedPostCancel ()
+testMultithreadedPostCancel (void)
{
int result = 0;
int flags;
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
@@ -118,7 +118,7 @@ ahc_echo (void *cls,
static int
-testInternalPost ()
+testInternalPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -207,7 +207,7 @@ testInternalPost ()
static int
-testMultithreadedPost ()
+testMultithreadedPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -299,7 +299,7 @@ testMultithreadedPost ()
static int
-testMultithreadedPoolPost ()
+testMultithreadedPoolPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -390,7 +390,7 @@ testMultithreadedPoolPost ()
static int
-testExternalPost ()
+testExternalPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -615,7 +615,7 @@ static unsigned long long start_time;
* @return current time in ms
*/
static unsigned long long
-now ()
+now (void)
{
struct timeval tv;
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c
@@ -174,7 +174,7 @@ ahc_echo (void *cls,
static struct curl_httppost *
-make_form ()
+make_form (void)
{
struct curl_httppost *post = NULL;
struct curl_httppost *last = NULL;
@@ -188,7 +188,7 @@ make_form ()
static int
-testInternalPost ()
+testInternalPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -266,7 +266,7 @@ testInternalPost ()
static int
-testMultithreadedPost ()
+testMultithreadedPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -345,7 +345,7 @@ testMultithreadedPost ()
static int
-testMultithreadedPoolPost ()
+testMultithreadedPoolPost (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -424,7 +424,7 @@ testMultithreadedPoolPost ()
static int
-testExternalPost ()
+testExternalPost (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_process_arguments.c b/src/testcurl/test_process_arguments.c
@@ -112,7 +112,7 @@ ahc_echo (void *cls,
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c
@@ -153,7 +153,7 @@ ahc_echo (void *cls,
static int
-testInternalGet ()
+testInternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -224,7 +224,7 @@ testInternalGet ()
static int
-testMultithreadedGet ()
+testMultithreadedGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -296,7 +296,7 @@ testMultithreadedGet ()
static int
-testMultithreadedPoolGet ()
+testMultithreadedPoolGet (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -369,7 +369,7 @@ testMultithreadedPoolGet ()
static int
-testExternalGet ()
+testExternalGet (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
@@ -124,7 +124,7 @@ ahc_echo (void *cls,
static int
-testInternalPut ()
+testInternalPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -202,7 +202,7 @@ testInternalPut ()
static int
-testMultithreadedPut ()
+testMultithreadedPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -282,7 +282,7 @@ testMultithreadedPut ()
static int
-testMultithreadedPoolPut ()
+testMultithreadedPoolPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -363,7 +363,7 @@ testMultithreadedPoolPut ()
static int
-testExternalPut ()
+testExternalPut (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c
@@ -134,7 +134,7 @@ ahc_echo (void *cls,
static int
-testInternalPut ()
+testInternalPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -208,7 +208,7 @@ testInternalPut ()
static int
-testMultithreadedPut ()
+testMultithreadedPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -284,7 +284,7 @@ testMultithreadedPut ()
static int
-testMultithreadedPoolPut ()
+testMultithreadedPoolPut (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -361,7 +361,7 @@ testMultithreadedPoolPut ()
static int
-testExternalPut ()
+testExternalPut (void)
{
struct MHD_Daemon *d;
CURL *c;
diff --git a/src/testcurl/test_timeout.c b/src/testcurl/test_timeout.c
@@ -45,7 +45,7 @@
* Pause execution for specified number of milliseconds.
* @param ms the number of milliseconds to sleep
*/
-void
+static void
_MHD_sleep (uint32_t ms)
{
#if defined(_WIN32)
@@ -224,7 +224,7 @@ ahc_echo (void *cls,
static int
-testWithoutTimeout ()
+testWithoutTimeout (void)
{
struct MHD_Daemon *d;
CURL *c;
@@ -311,7 +311,7 @@ testWithoutTimeout ()
static int
-testWithTimeout ()
+testWithTimeout (void)
{
struct MHD_Daemon *d;
CURL *c;