From 4adc14c948ac4981a7b4c91c6e16dc5fc39dd97a Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Wed, 28 Sep 2022 11:46:59 +0300 Subject: Some readability improvements --- src/testcurl/https/tls_test_common.c | 4 ++-- src/testcurl/test_long_header.c | 36 ++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'src/testcurl') diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index f3c561fe..e23f1c4e 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c @@ -711,8 +711,8 @@ testsuite_curl_global_init (void) res = curl_global_init (CURL_GLOBAL_ALL); if (CURLE_OK != res) { - fprintf (stderr, "libcurl initialisation error: %s\n", curl_easy_strerror ( - res)); + fprintf (stderr, "libcurl initialisation error: %s\n", + curl_easy_strerror (res)); return 0; } return 1; diff --git a/src/testcurl/test_long_header.c b/src/testcurl/test_long_header.c index e7450d92..feaefed5 100644 --- a/src/testcurl/test_long_header.c +++ b/src/testcurl/test_long_header.c @@ -119,15 +119,15 @@ testLongUrlGet (size_t buff_size) cbc.buf = buf; cbc.size = 2048; cbc.pos = 0; - d = MHD_start_daemon ( - MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */, - port, - &apc_all, - NULL, - &ahc_echo, - "GET", - MHD_OPTION_CONNECTION_MEMORY_LIMIT, - (size_t) buff_size, MHD_OPTION_END); + d = + MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */, + port, + &apc_all, + NULL, + &ahc_echo, + "GET", + MHD_OPTION_CONNECTION_MEMORY_LIMIT, + (size_t) buff_size, MHD_OPTION_END); if (d == NULL) return 1; if (0 == port) @@ -213,15 +213,15 @@ testLongHeaderGet (size_t buff_size) cbc.buf = buf; cbc.size = 2048; cbc.pos = 0; - d = MHD_start_daemon ( - MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */, - port, - &apc_all, - NULL, - &ahc_echo, - "GET", - MHD_OPTION_CONNECTION_MEMORY_LIMIT, - (size_t) buff_size, MHD_OPTION_END); + d = + MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */, + port, + &apc_all, + NULL, + &ahc_echo, + "GET", + MHD_OPTION_CONNECTION_MEMORY_LIMIT, + (size_t) buff_size, MHD_OPTION_END); if (d == NULL) return 16; if (0 == port) -- cgit v1.2.3