aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-28 11:46:59 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-28 11:46:59 +0300
commit4adc14c948ac4981a7b4c91c6e16dc5fc39dd97a (patch)
tree9f0a0ce79d2e5cd35f23e4affc98fc16cf7281ca /src/testcurl
parent13e217f5c2e5647552e4452406a43c8dc0782a35 (diff)
downloadlibmicrohttpd-4adc14c948ac4981a7b4c91c6e16dc5fc39dd97a.tar.gz
libmicrohttpd-4adc14c948ac4981a7b4c91c6e16dc5fc39dd97a.zip
Some readability improvements
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/https/tls_test_common.c4
-rw-r--r--src/testcurl/test_long_header.c36
2 files changed, 20 insertions, 20 deletions
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)
711 res = curl_global_init (CURL_GLOBAL_ALL); 711 res = curl_global_init (CURL_GLOBAL_ALL);
712 if (CURLE_OK != res) 712 if (CURLE_OK != res)
713 { 713 {
714 fprintf (stderr, "libcurl initialisation error: %s\n", curl_easy_strerror ( 714 fprintf (stderr, "libcurl initialisation error: %s\n",
715 res)); 715 curl_easy_strerror (res));
716 return 0; 716 return 0;
717 } 717 }
718 return 1; 718 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)
119 cbc.buf = buf; 119 cbc.buf = buf;
120 cbc.size = 2048; 120 cbc.size = 2048;
121 cbc.pos = 0; 121 cbc.pos = 0;
122 d = MHD_start_daemon ( 122 d =
123 MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */, 123 MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */,
124 port, 124 port,
125 &apc_all, 125 &apc_all,
126 NULL, 126 NULL,
127 &ahc_echo, 127 &ahc_echo,
128 "GET", 128 "GET",
129 MHD_OPTION_CONNECTION_MEMORY_LIMIT, 129 MHD_OPTION_CONNECTION_MEMORY_LIMIT,
130 (size_t) buff_size, MHD_OPTION_END); 130 (size_t) buff_size, MHD_OPTION_END);
131 if (d == NULL) 131 if (d == NULL)
132 return 1; 132 return 1;
133 if (0 == port) 133 if (0 == port)
@@ -213,15 +213,15 @@ testLongHeaderGet (size_t buff_size)
213 cbc.buf = buf; 213 cbc.buf = buf;
214 cbc.size = 2048; 214 cbc.size = 2048;
215 cbc.pos = 0; 215 cbc.pos = 0;
216 d = MHD_start_daemon ( 216 d =
217 MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */, 217 MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD /* | MHD_USE_ERROR_LOG */,
218 port, 218 port,
219 &apc_all, 219 &apc_all,
220 NULL, 220 NULL,
221 &ahc_echo, 221 &ahc_echo,
222 "GET", 222 "GET",
223 MHD_OPTION_CONNECTION_MEMORY_LIMIT, 223 MHD_OPTION_CONNECTION_MEMORY_LIMIT,
224 (size_t) buff_size, MHD_OPTION_END); 224 (size_t) buff_size, MHD_OPTION_END);
225 if (d == NULL) 225 if (d == NULL)
226 return 16; 226 return 16;
227 if (0 == port) 227 if (0 == port)