aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_put.c')
-rw-r--r--src/testcurl/test_put.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index 3d25016a..0c5e797e 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -165,7 +165,7 @@ testInternalPut ()
165 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 165 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
166 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 166 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
167 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 167 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
169 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 169 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
170 if (oneone) 170 if (oneone)
171 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 171 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -175,7 +175,7 @@ testInternalPut ()
175 /* NOTE: use of CONNECTTIMEOUT without also 175 /* NOTE: use of CONNECTTIMEOUT without also
176 * setting NOSIGNAL results in really weird 176 * setting NOSIGNAL results in really weird
177 * crashes on my system! */ 177 * crashes on my system! */
178 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 178 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
179 if (CURLE_OK != (errornum = curl_easy_perform (c))) 179 if (CURLE_OK != (errornum = curl_easy_perform (c)))
180 { 180 {
181 fprintf (stderr, 181 fprintf (stderr,
@@ -240,7 +240,7 @@ testMultithreadedPut ()
240 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 240 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
241 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 241 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
242 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 242 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
243 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 243 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
244 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 244 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
245 if (oneone) 245 if (oneone)
246 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 246 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -250,7 +250,7 @@ testMultithreadedPut ()
250 /* NOTE: use of CONNECTTIMEOUT without also 250 /* NOTE: use of CONNECTTIMEOUT without also
251 * setting NOSIGNAL results in really weird 251 * setting NOSIGNAL results in really weird
252 * crashes on my system! */ 252 * crashes on my system! */
253 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 253 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
254 if (CURLE_OK != (errornum = curl_easy_perform (c))) 254 if (CURLE_OK != (errornum = curl_easy_perform (c)))
255 { 255 {
256 fprintf (stderr, 256 fprintf (stderr,
@@ -317,7 +317,7 @@ testMultithreadedPoolPut ()
317 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 317 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
318 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 318 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
319 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 319 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
320 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 320 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
321 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 321 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
322 if (oneone) 322 if (oneone)
323 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 323 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -327,7 +327,7 @@ testMultithreadedPoolPut ()
327 /* NOTE: use of CONNECTTIMEOUT without also 327 /* NOTE: use of CONNECTTIMEOUT without also
328 * setting NOSIGNAL results in really weird 328 * setting NOSIGNAL results in really weird
329 * crashes on my system! */ 329 * crashes on my system! */
330 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 330 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
331 if (CURLE_OK != (errornum = curl_easy_perform (c))) 331 if (CURLE_OK != (errornum = curl_easy_perform (c)))
332 { 332 {
333 fprintf (stderr, 333 fprintf (stderr,
@@ -405,7 +405,7 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
405 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 405 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
406 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 406 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
407 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 407 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
408 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 408 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
409 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 409 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
410 if (oneone) 410 if (oneone)
411 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 411 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -415,7 +415,7 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
415 /* NOTE: use of CONNECTTIMEOUT without also 415 /* NOTE: use of CONNECTTIMEOUT without also
416 * setting NOSIGNAL results in really weird 416 * setting NOSIGNAL results in really weird
417 * crashes on my system! */ 417 * crashes on my system! */
418 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 418 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
419 419
420 420
421 multi = curl_multi_init (); 421 multi = curl_multi_init ();