libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7f68d8de552a36c873094771bb053ec95a8e8bb8
parent 742e5bd1b66cc57b0b7e10b9fcd676121f6f748f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 23 Nov 2021 12:59:19 +0300

Tests: fixed code style

Diffstat:
Msrc/testcurl/test_concurrent_stop.c | 8++++----
Msrc/testcurl/test_delete.c | 2+-
Msrc/testcurl/test_digestauth.c | 2+-
Msrc/testcurl/test_digestauth_sha256.c | 2+-
Msrc/testcurl/test_digestauth_with_arguments.c | 2+-
Msrc/testcurl/test_get_iovec.c | 14+++++++-------
Msrc/testcurl/test_patch.c | 2+-
Msrc/testcurl/test_put.c | 2+-
Msrc/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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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);