diff options
Diffstat (limited to 'src/testcurl/test_get_sendfile.c')
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index 2c4efa82..3e68647b 100644 --- a/src/testcurl/test_get_sendfile.c +++ b/src/testcurl/test_get_sendfile.c | |||
@@ -155,7 +155,7 @@ testInternalGet () | |||
155 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 155 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
156 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 156 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
157 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 157 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
159 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 159 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
160 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 160 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
161 | if (oneone) | 161 | if (oneone) |
@@ -165,7 +165,7 @@ testInternalGet () | |||
165 | /* NOTE: use of CONNECTTIMEOUT without also | 165 | /* NOTE: use of CONNECTTIMEOUT without also |
166 | setting NOSIGNAL results in really weird | 166 | setting NOSIGNAL results in really weird |
167 | crashes on my system!*/ | 167 | crashes on my system!*/ |
168 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 168 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
169 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 169 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
170 | { | 170 | { |
171 | fprintf (stderr, | 171 | fprintf (stderr, |
@@ -224,7 +224,7 @@ testMultithreadedGet () | |||
224 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 224 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
225 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 225 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
226 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 226 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
227 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 227 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
228 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 228 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
229 | if (oneone) | 229 | if (oneone) |
230 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 230 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -234,7 +234,7 @@ testMultithreadedGet () | |||
234 | /* NOTE: use of CONNECTTIMEOUT without also | 234 | /* NOTE: use of CONNECTTIMEOUT without also |
235 | setting NOSIGNAL results in really weird | 235 | setting NOSIGNAL results in really weird |
236 | crashes on my system! */ | 236 | crashes on my system! */ |
237 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 237 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
238 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 238 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
239 | { | 239 | { |
240 | fprintf (stderr, | 240 | fprintf (stderr, |
@@ -294,7 +294,7 @@ testMultithreadedPoolGet () | |||
294 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 294 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
295 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 295 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
296 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 296 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
297 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 297 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
298 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 298 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
299 | if (oneone) | 299 | if (oneone) |
300 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 300 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -304,7 +304,7 @@ testMultithreadedPoolGet () | |||
304 | /* NOTE: use of CONNECTTIMEOUT without also | 304 | /* NOTE: use of CONNECTTIMEOUT without also |
305 | setting NOSIGNAL results in really weird | 305 | setting NOSIGNAL results in really weird |
306 | crashes on my system!*/ | 306 | crashes on my system!*/ |
307 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 307 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
308 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 308 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
309 | { | 309 | { |
310 | fprintf (stderr, | 310 | fprintf (stderr, |
@@ -378,7 +378,7 @@ testExternalGet () | |||
378 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 378 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
379 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 379 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
380 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 380 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
381 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 381 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
382 | if (oneone) | 382 | if (oneone) |
383 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 383 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
384 | else | 384 | else |
@@ -388,7 +388,7 @@ testExternalGet () | |||
388 | /* NOTE: use of CONNECTTIMEOUT without also | 388 | /* NOTE: use of CONNECTTIMEOUT without also |
389 | setting NOSIGNAL results in really weird | 389 | setting NOSIGNAL results in really weird |
390 | crashes on my system! */ | 390 | crashes on my system! */ |
391 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 391 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
392 | 392 | ||
393 | 393 | ||
394 | multi = curl_multi_init (); | 394 | multi = curl_multi_init (); |
@@ -539,7 +539,7 @@ testUnknownPortGet () | |||
539 | curl_easy_setopt (c, CURLOPT_URL, buf); | 539 | curl_easy_setopt (c, CURLOPT_URL, buf); |
540 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 540 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
541 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 541 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
542 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 542 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
543 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 543 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
544 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 544 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
545 | if (oneone) | 545 | if (oneone) |
@@ -549,7 +549,7 @@ testUnknownPortGet () | |||
549 | /* NOTE: use of CONNECTTIMEOUT without also | 549 | /* NOTE: use of CONNECTTIMEOUT without also |
550 | setting NOSIGNAL results in really weird | 550 | setting NOSIGNAL results in really weird |
551 | crashes on my system! */ | 551 | crashes on my system! */ |
552 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 552 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
553 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 553 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
554 | { | 554 | { |
555 | fprintf (stderr, | 555 | fprintf (stderr, |