[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/03: Tests: fixed code style
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/03: Tests: fixed code style |
Date: |
Tue, 23 Nov 2021 13:12:03 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 7f68d8de552a36c873094771bb053ec95a8e8bb8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Nov 23 12:59:19 2021 +0300
Tests: fixed code style
---
src/testcurl/test_concurrent_stop.c | 8 ++++----
src/testcurl/test_delete.c | 2 +-
src/testcurl/test_digestauth.c | 2 +-
src/testcurl/test_digestauth_sha256.c | 2 +-
src/testcurl/test_digestauth_with_arguments.c | 2 +-
src/testcurl/test_get_iovec.c | 14 +++++++-------
src/testcurl/test_patch.c | 2 +-
src/testcurl/test_put.c | 2 +-
src/testcurl/test_quiesce.c | 4 ++--
9 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/testcurl/test_concurrent_stop.c
b/src/testcurl/test_concurrent_stop.c
index ac2eae15..ee41ef94 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -105,7 +105,7 @@ start_watchdog (int timeout, const char *obj_name)
watchdog_continue = 1;
watchdog_obj = obj_name;
if (0 != pthread_create (&watchdog_tid, NULL, &thread_watchdog,
- (void*) (intptr_t) timeout))
+ (void *) (intptr_t) timeout))
{
fprintf (stderr, "Failed to start watchdog.\n");
_exit (99);
@@ -173,7 +173,7 @@ thread_gets (void *param)
{
CURL *c;
CURLcode errornum;
- char *const url = (char*) param;
+ char *const url = (char *) param;
c = NULL;
c = curl_easy_init ();
@@ -226,7 +226,7 @@ do_gets (void *param)
for (j = 0; j < PAR; j++)
{
- if (0 != pthread_create (&par[j], NULL, &thread_gets, (void*) url))
+ if (0 != pthread_create (&par[j], NULL, &thread_gets, (void *) url))
{
fprintf (stderr, "pthread_create failed.\n");
continue_requesting = 0;
@@ -251,7 +251,7 @@ start_gets (int port)
{
pthread_t tid;
continue_requesting = 1;
- if (0 != pthread_create (&tid, NULL, &do_gets, (void*) (intptr_t) port))
+ if (0 != pthread_create (&tid, NULL, &do_gets, (void *) (intptr_t) port))
{
fprintf (stderr, "pthread_create failed.\n");
_exit (99);
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c
index 5eb5a649..43bd2840 100644
--- a/src/testcurl/test_delete.c
+++ b/src/testcurl/test_delete.c
@@ -115,7 +115,7 @@ ahc_echo (void *cls,
*done = 1;
return MHD_YES;
}
- response = MHD_create_response_from_buffer (strlen (url), (void*) url,
+ response = MHD_create_response_from_buffer (strlen (url), (void *) url,
MHD_RESPMEM_MUST_COPY);
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index 49a3c52b..3b2f2501 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -217,7 +217,7 @@ testDigestAuth ()
GetLastError ());
return 1;
}
- b = CryptGenRandom (cc, 8, (BYTE*) rnd);
+ b = CryptGenRandom (cc, 8, (BYTE *) rnd);
if (b == 0)
{
fprintf (stderr,
diff --git a/src/testcurl/test_digestauth_sha256.c
b/src/testcurl/test_digestauth_sha256.c
index d1b79dff..a720c69b 100644
--- a/src/testcurl/test_digestauth_sha256.c
+++ b/src/testcurl/test_digestauth_sha256.c
@@ -221,7 +221,7 @@ testDigestAuth ()
GetLastError ());
return 1;
}
- b = CryptGenRandom (cc, 8, (BYTE*) rnd);
+ b = CryptGenRandom (cc, 8, (BYTE *) rnd);
if (b == 0)
{
fprintf (stderr,
diff --git a/src/testcurl/test_digestauth_with_arguments.c
b/src/testcurl/test_digestauth_with_arguments.c
index 2723b5a9..523c9552 100644
--- a/src/testcurl/test_digestauth_with_arguments.c
+++ b/src/testcurl/test_digestauth_with_arguments.c
@@ -196,7 +196,7 @@ testDigestAuth ()
GetLastError ());
return 1;
}
- b = CryptGenRandom (cc, 8, (BYTE*) rnd);
+ b = CryptGenRandom (cc, 8, (BYTE *) rnd);
if (b == 0)
{
fprintf (stderr, "Failed to generate 8 random bytes: %lu\n",
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c
index f87cd4eb..ae30f6d6 100644
--- a/src/testcurl/test_get_iovec.c
+++ b/src/testcurl/test_get_iovec.c
@@ -99,7 +99,7 @@ iovncont_free_callback (void *cls)
unsigned int i;
for (i = 0; i < TESTSTR_IOVCNT; ++i)
- free ((void*) iov[i].iov_base);
+ free ((void *) iov[i].iov_base);
free (iov);
}
@@ -245,7 +245,7 @@ err_out:
for (j = 0; j < TESTSTR_IOVCNT; ++j)
{
if (NULL != iov[j].iov_base)
- free ((void*) iov[j].iov_base);
+ free ((void *) iov[j].iov_base);
}
free (iov);
return MHD_NO;
@@ -270,7 +270,7 @@ testInternalGet (bool contiguous)
port += 10;
}
- cbc.buf = (char*) readbuf;
+ cbc.buf = (char *) readbuf;
cbc.size = sizeof(readbuf);
cbc.pos = 0;
@@ -350,7 +350,7 @@ testMultithreadedGet ()
port += 10;
}
- cbc.buf = (char*) readbuf;
+ cbc.buf = (char *) readbuf;
cbc.size = sizeof(readbuf);
cbc.pos = 0;
d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION
@@ -422,7 +422,7 @@ testMultithreadedPoolGet ()
port += 10;
}
- cbc.buf = (char*) readbuf;
+ cbc.buf = (char *) readbuf;
cbc.size = sizeof(readbuf);
cbc.pos = 0;
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
@@ -510,7 +510,7 @@ testExternalGet ()
}
multi = NULL;
- cbc.buf = (char*) readbuf;
+ cbc.buf = (char *) readbuf;
cbc.size = sizeof(readbuf);
cbc.pos = 0;
d = MHD_start_daemon (MHD_USE_ERROR_LOG,
@@ -678,7 +678,7 @@ testUnknownPortGet ()
addr.sin_port = 0;
addr.sin_addr.s_addr = INADDR_ANY;
- cbc.buf = (char*) readbuf;
+ cbc.buf = (char *) readbuf;
cbc.size = sizeof(readbuf);
cbc.pos = 0;
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
diff --git a/src/testcurl/test_patch.c b/src/testcurl/test_patch.c
index b4ff2673..f443ad08 100644
--- a/src/testcurl/test_patch.c
+++ b/src/testcurl/test_patch.c
@@ -115,7 +115,7 @@ ahc_echo (void *cls,
*done = 1;
return MHD_YES;
}
- response = MHD_create_response_from_buffer (strlen (url), (void*) url,
+ response = MHD_create_response_from_buffer (strlen (url), (void *) url,
MHD_RESPMEM_MUST_COPY);
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index 2db87b8c..f572a9a8 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -115,7 +115,7 @@ ahc_echo (void *cls,
*done = 1;
return MHD_YES;
}
- response = MHD_create_response_from_buffer (strlen (url), (void*) url,
+ response = MHD_create_response_from_buffer (strlen (url), (void *) url,
MHD_RESPMEM_MUST_COPY);
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index 43f7536c..33d34dd5 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -284,7 +284,7 @@ testGet (int type, int pool_count, int poll_flag)
return 2;
}
if (0 != pthread_create (&thrd, NULL, &ServeOneRequest,
- (void*) (intptr_t) fd))
+ (void *) (intptr_t) fd))
{
fprintf (stderr, "pthread_create failed\n");
curl_easy_cleanup (c);
@@ -303,7 +303,7 @@ testGet (int type, int pool_count, int poll_flag)
return 2;
}
- if (0 != pthread_join (thrd, (void**) &thrdRet))
+ if (0 != pthread_join (thrd, (void **) &thrdRet))
{
fprintf (stderr, "pthread_join failed\n");
curl_easy_cleanup (c);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.