diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-31 15:20:39 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-31 15:20:39 +0300 |
commit | d1d4e15a97932b0122eb0c4a6d54453269c85792 (patch) | |
tree | 2608f823b884915f9900e499b627dfd329ea38c3 /src/testzzuf/test_get.c | |
parent | 424abcd21daf7000fa826a03de6188ea608a50ec (diff) | |
download | libmicrohttpd-d1d4e15a97932b0122eb0c4a6d54453269c85792.tar.gz libmicrohttpd-d1d4e15a97932b0122eb0c4a6d54453269c85792.zip |
Stick to C89 standard for a while
Diffstat (limited to 'src/testzzuf/test_get.c')
-rw-r--r-- | src/testzzuf/test_get.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c index 503aee44..7e116d09 100644 --- a/src/testzzuf/test_get.c +++ b/src/testzzuf/test_get.c | |||
@@ -124,9 +124,9 @@ testInternalGet () | |||
124 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 124 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
125 | else | 125 | else |
126 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 126 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
127 | // NOTE: use of CONNECTTIMEOUT without also | 127 | /* NOTE: use of CONNECTTIMEOUT without also |
128 | // setting NOSIGNAL results in really weird | 128 | * setting NOSIGNAL results in really weird |
129 | // crashes on my system! | 129 | * crashes on my system! */ |
130 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 130 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
131 | curl_easy_perform (c); | 131 | curl_easy_perform (c); |
132 | curl_easy_cleanup (c); | 132 | curl_easy_cleanup (c); |
@@ -168,9 +168,9 @@ testMultithreadedGet () | |||
168 | else | 168 | else |
169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
171 | // NOTE: use of CONNECTTIMEOUT without also | 171 | /* NOTE: use of CONNECTTIMEOUT without also |
172 | // setting NOSIGNAL results in really weird | 172 | * setting NOSIGNAL results in really weird |
173 | // crashes on my system! | 173 | * crashes on my system! */ |
174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
@@ -229,9 +229,9 @@ testExternalGet () | |||
229 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 229 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
230 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 230 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
231 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 231 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
232 | // NOTE: use of CONNECTTIMEOUT without also | 232 | /* NOTE: use of CONNECTTIMEOUT without also |
233 | // setting NOSIGNAL results in really weird | 233 | * setting NOSIGNAL results in really weird |
234 | // crashes on my system! | 234 | * crashes on my system! */ |
235 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 235 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
236 | mret = curl_multi_add_handle (multi, c); | 236 | mret = curl_multi_add_handle (multi, c); |
237 | if (mret != CURLM_OK) | 237 | if (mret != CURLM_OK) |