diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
commit | 3894027826cbc6688428d8d54e2debe25b1d0661 (patch) | |
tree | 69c3fa8140a365da5b138aa4519b154e2063c7b8 /src | |
parent | 710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff) | |
download | libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip |
tests: properly setup CURL options
Diffstat (limited to 'src')
36 files changed, 205 insertions, 205 deletions
diff --git a/src/testcurl/https/test_empty_response.c b/src/testcurl/https/test_empty_response.c index 27cb1e31..f53a70ec 100644 --- a/src/testcurl/https/test_empty_response.c +++ b/src/testcurl/https/test_empty_response.c | |||
@@ -118,9 +118,9 @@ testInternalSelectGet () | |||
118 | /* TLS options */ | 118 | /* TLS options */ |
119 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); | 119 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); |
120 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); | 120 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); |
121 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 121 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); |
122 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 122 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
123 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 123 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
124 | if (oneone) | 124 | if (oneone) |
125 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 125 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
126 | else | 126 | else |
@@ -130,7 +130,7 @@ testInternalSelectGet () | |||
130 | /* NOTE: use of CONNECTTIMEOUT without also | 130 | /* NOTE: use of CONNECTTIMEOUT without also |
131 | setting NOSIGNAL results in really weird | 131 | setting NOSIGNAL results in really weird |
132 | crashes on my system! */ | 132 | crashes on my system! */ |
133 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 133 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
134 | 134 | ||
135 | 135 | ||
136 | multi = curl_multi_init (); | 136 | multi = curl_multi_init (); |
diff --git a/src/testcurl/https/test_https_get_select.c b/src/testcurl/https/test_https_get_select.c index 6afb1ba4..94b4a051 100644 --- a/src/testcurl/https/test_https_get_select.c +++ b/src/testcurl/https/test_https_get_select.c | |||
@@ -134,9 +134,9 @@ testExternalGet (int flags) | |||
134 | /* TLS options */ | 134 | /* TLS options */ |
135 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); | 135 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); |
136 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); | 136 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); |
137 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 137 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); |
138 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 138 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
139 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 139 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
140 | if (oneone) | 140 | if (oneone) |
141 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 141 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
142 | else | 142 | else |
@@ -146,7 +146,7 @@ testExternalGet (int flags) | |||
146 | /* NOTE: use of CONNECTTIMEOUT without also | 146 | /* NOTE: use of CONNECTTIMEOUT without also |
147 | setting NOSIGNAL results in really weird | 147 | setting NOSIGNAL results in really weird |
148 | crashes on my system! */ | 148 | crashes on my system! */ |
149 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 149 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
150 | 150 | ||
151 | 151 | ||
152 | multi = curl_multi_init (); | 152 | multi = curl_multi_init (); |
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c index 3507749f..45f13981 100644 --- a/src/testcurl/https/test_https_session_info.c +++ b/src/testcurl/https/test_https_session_info.c | |||
@@ -151,7 +151,7 @@ test_query_session () | |||
151 | port); | 151 | port); |
152 | c = curl_easy_init (); | 152 | c = curl_easy_init (); |
153 | #if DEBUG_HTTPS_TEST | 153 | #if DEBUG_HTTPS_TEST |
154 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); | 154 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); |
155 | #endif | 155 | #endif |
156 | curl_easy_setopt (c, CURLOPT_URL, url); | 156 | curl_easy_setopt (c, CURLOPT_URL, url); |
157 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 157 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -163,14 +163,14 @@ test_query_session () | |||
163 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_1); | 163 | curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_1); |
164 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); | 164 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); |
165 | /* currently skip any peer authentication */ | 165 | /* currently skip any peer authentication */ |
166 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 166 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); |
167 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 167 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
168 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 168 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
169 | 169 | ||
170 | /* NOTE: use of CONNECTTIMEOUT without also | 170 | /* NOTE: use of CONNECTTIMEOUT without also |
171 | * setting NOSIGNAL results in really weird | 171 | * setting NOSIGNAL results in really weird |
172 | * crashes on my system! */ | 172 | * crashes on my system! */ |
173 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 173 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
174 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 174 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
175 | { | 175 | { |
176 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", | 176 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", |
diff --git a/src/testcurl/https/test_https_sni.c b/src/testcurl/https/test_https_sni.c index 6963d62c..8af1472b 100644 --- a/src/testcurl/https/test_https_sni.c +++ b/src/testcurl/https/test_https_sni.c | |||
@@ -201,7 +201,7 @@ do_get (const char *url, int port) | |||
201 | 201 | ||
202 | c = curl_easy_init (); | 202 | c = curl_easy_init (); |
203 | #if DEBUG_HTTPS_TEST | 203 | #if DEBUG_HTTPS_TEST |
204 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); | 204 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); |
205 | #endif | 205 | #endif |
206 | curl_easy_setopt (c, CURLOPT_URL, url); | 206 | curl_easy_setopt (c, CURLOPT_URL, url); |
207 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 207 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
@@ -213,19 +213,19 @@ do_get (const char *url, int port) | |||
213 | 213 | ||
214 | /* perform peer authentication */ | 214 | /* perform peer authentication */ |
215 | /* TODO merge into send_curl_req */ | 215 | /* TODO merge into send_curl_req */ |
216 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 216 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); |
217 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 2); | 217 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 2L); |
218 | sprintf(buf, "host1:%d:127.0.0.1", port); | 218 | sprintf(buf, "host1:%d:127.0.0.1", port); |
219 | dns_info = curl_slist_append (NULL, buf); | 219 | dns_info = curl_slist_append (NULL, buf); |
220 | sprintf(buf, "host2:%d:127.0.0.1", port); | 220 | sprintf(buf, "host2:%d:127.0.0.1", port); |
221 | dns_info = curl_slist_append (dns_info, buf); | 221 | dns_info = curl_slist_append (dns_info, buf); |
222 | curl_easy_setopt (c, CURLOPT_RESOLVE, dns_info); | 222 | curl_easy_setopt (c, CURLOPT_RESOLVE, dns_info); |
223 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 223 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
224 | 224 | ||
225 | /* NOTE: use of CONNECTTIMEOUT without also | 225 | /* NOTE: use of CONNECTTIMEOUT without also |
226 | setting NOSIGNAL results in really weird | 226 | setting NOSIGNAL results in really weird |
227 | crashes on my system! */ | 227 | crashes on my system! */ |
228 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 228 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
229 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 229 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
230 | { | 230 | { |
231 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", | 231 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", |
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 3641f098..367bed00 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -89,7 +89,7 @@ test_daemon_get (void *cls, | |||
89 | 89 | ||
90 | c = curl_easy_init (); | 90 | c = curl_easy_init (); |
91 | #if DEBUG_HTTPS_TEST | 91 | #if DEBUG_HTTPS_TEST |
92 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); | 92 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); |
93 | #endif | 93 | #endif |
94 | curl_easy_setopt (c, CURLOPT_URL, url); | 94 | curl_easy_setopt (c, CURLOPT_URL, url); |
95 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 95 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
@@ -107,13 +107,13 @@ test_daemon_get (void *cls, | |||
107 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); | 107 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); |
108 | if (ver_peer) | 108 | if (ver_peer) |
109 | curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); | 109 | curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); |
110 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 110 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
111 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 111 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
112 | 112 | ||
113 | /* NOTE: use of CONNECTTIMEOUT without also | 113 | /* NOTE: use of CONNECTTIMEOUT without also |
114 | setting NOSIGNAL results in really weird | 114 | setting NOSIGNAL results in really weird |
115 | crashes on my system! */ | 115 | crashes on my system! */ |
116 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 116 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
117 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 117 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
118 | { | 118 | { |
119 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", | 119 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", |
@@ -238,15 +238,15 @@ send_curl_req (char *url, struct CBC * cbc, const char *cipher_suite, | |||
238 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, cipher_suite); | 238 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, cipher_suite); |
239 | 239 | ||
240 | /* currently skip any peer authentication */ | 240 | /* currently skip any peer authentication */ |
241 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 241 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); |
242 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 242 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
243 | 243 | ||
244 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 244 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
245 | 245 | ||
246 | /* NOTE: use of CONNECTTIMEOUT without also | 246 | /* NOTE: use of CONNECTTIMEOUT without also |
247 | setting NOSIGNAL results in really weird | 247 | setting NOSIGNAL results in really weird |
248 | crashes on my system! */ | 248 | crashes on my system! */ |
249 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 249 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
250 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 250 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
251 | { | 251 | { |
252 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", | 252 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", |
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c index 8f82b198..a0af70cd 100644 --- a/src/testcurl/perf_get.c +++ b/src/testcurl/perf_get.c | |||
@@ -220,7 +220,7 @@ testInternalGet (int port, int poll_flag) | |||
220 | curl_easy_setopt (c, CURLOPT_URL, url); | 220 | curl_easy_setopt (c, CURLOPT_URL, url); |
221 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 221 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
222 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 222 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
223 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 223 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
224 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 224 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
225 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 225 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
226 | if (oneone) | 226 | if (oneone) |
@@ -230,7 +230,7 @@ testInternalGet (int port, int poll_flag) | |||
230 | /* NOTE: use of CONNECTTIMEOUT without also | 230 | /* NOTE: use of CONNECTTIMEOUT without also |
231 | setting NOSIGNAL results in really weird | 231 | setting NOSIGNAL results in really weird |
232 | crashes on my system!*/ | 232 | crashes on my system!*/ |
233 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 233 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
234 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 234 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
235 | { | 235 | { |
236 | fprintf (stderr, | 236 | fprintf (stderr, |
@@ -294,7 +294,7 @@ testMultithreadedGet (int port, int poll_flag) | |||
294 | curl_easy_setopt (c, CURLOPT_URL, url); | 294 | curl_easy_setopt (c, CURLOPT_URL, url); |
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 @@ testMultithreadedGet (int port, int poll_flag) | |||
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, |
@@ -369,7 +369,7 @@ testMultithreadedPoolGet (int port, int poll_flag) | |||
369 | curl_easy_setopt (c, CURLOPT_URL, url); | 369 | curl_easy_setopt (c, CURLOPT_URL, url); |
370 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 370 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
371 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 371 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
372 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 372 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
373 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 373 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
374 | if (oneone) | 374 | if (oneone) |
375 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 375 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -379,7 +379,7 @@ testMultithreadedPoolGet (int port, int poll_flag) | |||
379 | /* NOTE: use of CONNECTTIMEOUT without also | 379 | /* NOTE: use of CONNECTTIMEOUT without also |
380 | setting NOSIGNAL results in really weird | 380 | setting NOSIGNAL results in really weird |
381 | crashes on my system!*/ | 381 | crashes on my system!*/ |
382 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 382 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
383 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 383 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
384 | { | 384 | { |
385 | fprintf (stderr, | 385 | fprintf (stderr, |
@@ -465,7 +465,7 @@ testExternalGet (int port) | |||
465 | curl_easy_setopt (c, CURLOPT_URL, url); | 465 | curl_easy_setopt (c, CURLOPT_URL, url); |
466 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 466 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
467 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 467 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
468 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 468 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
469 | if (oneone) | 469 | if (oneone) |
470 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 470 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
471 | else | 471 | else |
@@ -475,7 +475,7 @@ testExternalGet (int port) | |||
475 | /* NOTE: use of CONNECTTIMEOUT without also | 475 | /* NOTE: use of CONNECTTIMEOUT without also |
476 | setting NOSIGNAL results in really weird | 476 | setting NOSIGNAL results in really weird |
477 | crashes on my system! */ | 477 | crashes on my system! */ |
478 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 478 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
479 | mret = curl_multi_add_handle (multi, c); | 479 | mret = curl_multi_add_handle (multi, c); |
480 | if (mret != CURLM_OK) | 480 | if (mret != CURLM_OK) |
481 | { | 481 | { |
diff --git a/src/testcurl/test_callback.c b/src/testcurl/test_callback.c index 34bf8679..5b1062fe 100644 --- a/src/testcurl/test_callback.c +++ b/src/testcurl/test_callback.c | |||
@@ -158,11 +158,11 @@ main(int argc, char **argv) | |||
158 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/"); | 158 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/"); |
159 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 159 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
160 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &discard_buffer); | 160 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &discard_buffer); |
161 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 161 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
163 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 163 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
164 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 164 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
166 | multi = curl_multi_init (); | 166 | multi = curl_multi_init (); |
167 | if (multi == NULL) | 167 | if (multi == NULL) |
168 | { | 168 | { |
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c index 9b2de537..35e9dc62 100644 --- a/src/testcurl/test_delete.c +++ b/src/testcurl/test_delete.c | |||
@@ -162,7 +162,7 @@ testInternalDelete () | |||
162 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); | 162 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); |
163 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 163 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
164 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 164 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
165 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 165 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
166 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 166 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
167 | if (oneone) | 167 | if (oneone) |
168 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 168 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -172,7 +172,7 @@ testInternalDelete () | |||
172 | /* NOTE: use of CONNECTTIMEOUT without also | 172 | /* NOTE: use of CONNECTTIMEOUT without also |
173 | * setting NOSIGNAL results in really weird | 173 | * setting NOSIGNAL results in really weird |
174 | * crashes on my system! */ | 174 | * crashes on my system! */ |
175 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 175 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
176 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 176 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
177 | { | 177 | { |
178 | fprintf (stderr, | 178 | fprintf (stderr, |
@@ -235,7 +235,7 @@ testMultithreadedDelete () | |||
235 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); | 235 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); |
236 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 236 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
237 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 237 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
238 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 238 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
239 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 239 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
240 | if (oneone) | 240 | if (oneone) |
241 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 241 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -245,7 +245,7 @@ testMultithreadedDelete () | |||
245 | /* NOTE: use of CONNECTTIMEOUT without also | 245 | /* NOTE: use of CONNECTTIMEOUT without also |
246 | * setting NOSIGNAL results in really weird | 246 | * setting NOSIGNAL results in really weird |
247 | * crashes on my system! */ | 247 | * crashes on my system! */ |
248 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 248 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
249 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 249 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
250 | { | 250 | { |
251 | fprintf (stderr, | 251 | fprintf (stderr, |
@@ -309,7 +309,7 @@ testMultithreadedPoolDelete () | |||
309 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); | 309 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); |
310 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 310 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
311 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 311 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
312 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 312 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
313 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 313 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
314 | if (oneone) | 314 | if (oneone) |
315 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 315 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -319,7 +319,7 @@ testMultithreadedPoolDelete () | |||
319 | /* NOTE: use of CONNECTTIMEOUT without also | 319 | /* NOTE: use of CONNECTTIMEOUT without also |
320 | * setting NOSIGNAL results in really weird | 320 | * setting NOSIGNAL results in really weird |
321 | * crashes on my system! */ | 321 | * crashes on my system! */ |
322 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 322 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
323 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 323 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
324 | { | 324 | { |
325 | fprintf (stderr, | 325 | fprintf (stderr, |
@@ -398,7 +398,7 @@ testExternalDelete () | |||
398 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); | 398 | curl_easy_setopt (c, CURLOPT_CUSTOMREQUEST, "DELETE"); |
399 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 399 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
400 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 400 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
401 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 401 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
402 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 402 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
403 | if (oneone) | 403 | if (oneone) |
404 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 404 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -408,7 +408,7 @@ testExternalDelete () | |||
408 | /* NOTE: use of CONNECTTIMEOUT without also | 408 | /* NOTE: use of CONNECTTIMEOUT without also |
409 | * setting NOSIGNAL results in really weird | 409 | * setting NOSIGNAL results in really weird |
410 | * crashes on my system! */ | 410 | * crashes on my system! */ |
411 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 411 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
412 | 412 | ||
413 | 413 | ||
414 | multi = curl_multi_init (); | 414 | multi = curl_multi_init (); |
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c index b8b77674..b0a39bf7 100644 --- a/src/testcurl/test_digestauth.c +++ b/src/testcurl/test_digestauth.c | |||
@@ -255,14 +255,14 @@ testDigestAuth () | |||
255 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 255 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
256 | curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); | 256 | curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); |
257 | curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); | 257 | curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); |
258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
259 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 259 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
260 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 260 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
261 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 261 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
262 | /* NOTE: use of CONNECTTIMEOUT without also | 262 | /* NOTE: use of CONNECTTIMEOUT without also |
263 | setting NOSIGNAL results in really weird | 263 | setting NOSIGNAL results in really weird |
264 | crashes on my system!*/ | 264 | crashes on my system!*/ |
265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
266 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 266 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
267 | { | 267 | { |
268 | fprintf (stderr, | 268 | fprintf (stderr, |
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c index aaa57bbe..c3430283 100644 --- a/src/testcurl/test_digestauth_sha256.c +++ b/src/testcurl/test_digestauth_sha256.c | |||
@@ -259,14 +259,14 @@ testDigestAuth () | |||
259 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 259 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
260 | curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); | 260 | curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); |
261 | curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); | 261 | curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); |
262 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 262 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
263 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 263 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
264 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 264 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
265 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 265 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
266 | /* NOTE: use of CONNECTTIMEOUT without also | 266 | /* NOTE: use of CONNECTTIMEOUT without also |
267 | setting NOSIGNAL results in really weird | 267 | setting NOSIGNAL results in really weird |
268 | crashes on my system!*/ | 268 | crashes on my system!*/ |
269 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 269 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
270 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 270 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
271 | { | 271 | { |
272 | fprintf (stderr, | 272 | fprintf (stderr, |
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c index be59fab7..3f2852c0 100644 --- a/src/testcurl/test_digestauth_with_arguments.c +++ b/src/testcurl/test_digestauth_with_arguments.c | |||
@@ -224,14 +224,14 @@ testDigestAuth () | |||
224 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 224 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
225 | curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); | 225 | curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); |
226 | curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); | 226 | curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); |
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 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 229 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
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); |
231 | /* NOTE: use of CONNECTTIMEOUT without also | 231 | /* NOTE: use of CONNECTTIMEOUT without also |
232 | setting NOSIGNAL results in really weird | 232 | setting NOSIGNAL results in really weird |
233 | crashes on my system!*/ | 233 | crashes on my system!*/ |
234 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 234 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
235 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 235 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
236 | { | 236 | { |
237 | fprintf (stderr, | 237 | fprintf (stderr, |
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c index f6a8c033..cc8b5396 100644 --- a/src/testcurl/test_get.c +++ b/src/testcurl/test_get.c | |||
@@ -196,7 +196,7 @@ testInternalGet (int poll_flag) | |||
196 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); | 196 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); |
197 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 197 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
198 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 198 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
199 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 199 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
200 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 200 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
201 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 201 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
202 | if (oneone) | 202 | if (oneone) |
@@ -206,7 +206,7 @@ testInternalGet (int poll_flag) | |||
206 | /* NOTE: use of CONNECTTIMEOUT without also | 206 | /* NOTE: use of CONNECTTIMEOUT without also |
207 | setting NOSIGNAL results in really weird | 207 | setting NOSIGNAL results in really weird |
208 | crashes on my system!*/ | 208 | crashes on my system!*/ |
209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
210 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 210 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
211 | { | 211 | { |
212 | fprintf (stderr, | 212 | fprintf (stderr, |
@@ -266,7 +266,7 @@ testMultithreadedGet (int poll_flag) | |||
266 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); | 266 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); |
267 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 267 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
268 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 268 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
270 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 270 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
271 | if (oneone) | 271 | if (oneone) |
272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -276,7 +276,7 @@ testMultithreadedGet (int poll_flag) | |||
276 | /* NOTE: use of CONNECTTIMEOUT without also | 276 | /* NOTE: use of CONNECTTIMEOUT without also |
277 | setting NOSIGNAL results in really weird | 277 | setting NOSIGNAL results in really weird |
278 | crashes on my system! */ | 278 | crashes on my system! */ |
279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
280 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 280 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
281 | { | 281 | { |
282 | fprintf (stderr, | 282 | fprintf (stderr, |
@@ -337,7 +337,7 @@ testMultithreadedPoolGet (int poll_flag) | |||
337 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); | 337 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); |
338 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 338 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
339 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 339 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
340 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 340 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
341 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 341 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
342 | if (oneone) | 342 | if (oneone) |
343 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 343 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -347,7 +347,7 @@ testMultithreadedPoolGet (int poll_flag) | |||
347 | /* NOTE: use of CONNECTTIMEOUT without also | 347 | /* NOTE: use of CONNECTTIMEOUT without also |
348 | setting NOSIGNAL results in really weird | 348 | setting NOSIGNAL results in really weird |
349 | crashes on my system!*/ | 349 | crashes on my system!*/ |
350 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 350 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
351 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 351 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
352 | { | 352 | { |
353 | fprintf (stderr, | 353 | fprintf (stderr, |
@@ -418,7 +418,7 @@ testExternalGet () | |||
418 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); | 418 | curl_easy_setopt (c, CURLOPT_PORT, (long)global_port); |
419 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 419 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
420 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 420 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
421 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 421 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
422 | if (oneone) | 422 | if (oneone) |
423 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 423 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
424 | else | 424 | else |
@@ -428,7 +428,7 @@ testExternalGet () | |||
428 | /* NOTE: use of CONNECTTIMEOUT without also | 428 | /* NOTE: use of CONNECTTIMEOUT without also |
429 | setting NOSIGNAL results in really weird | 429 | setting NOSIGNAL results in really weird |
430 | crashes on my system! */ | 430 | crashes on my system! */ |
431 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 431 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
432 | 432 | ||
433 | 433 | ||
434 | multi = curl_multi_init (); | 434 | multi = curl_multi_init (); |
@@ -582,7 +582,7 @@ testUnknownPortGet (int poll_flag) | |||
582 | curl_easy_setopt (c, CURLOPT_URL, buf); | 582 | curl_easy_setopt (c, CURLOPT_URL, buf); |
583 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 583 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
584 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 584 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
585 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 585 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
586 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 586 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
587 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 587 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
588 | if (oneone) | 588 | if (oneone) |
@@ -592,7 +592,7 @@ testUnknownPortGet (int poll_flag) | |||
592 | /* NOTE: use of CONNECTTIMEOUT without also | 592 | /* NOTE: use of CONNECTTIMEOUT without also |
593 | setting NOSIGNAL results in really weird | 593 | setting NOSIGNAL results in really weird |
594 | crashes on my system! */ | 594 | crashes on my system! */ |
595 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 595 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
596 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 596 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
597 | { | 597 | { |
598 | fprintf (stderr, | 598 | fprintf (stderr, |
@@ -768,8 +768,8 @@ testEmptyGet (int poll_flag) | |||
768 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 768 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
769 | curl_easy_setopt (c, CURLOPT_DEBUGFUNCTION, &curlExcessFound); | 769 | curl_easy_setopt (c, CURLOPT_DEBUGFUNCTION, &curlExcessFound); |
770 | curl_easy_setopt (c, CURLOPT_DEBUGDATA, &excess_found); | 770 | curl_easy_setopt (c, CURLOPT_DEBUGDATA, &excess_found); |
771 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); | 771 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); |
772 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 772 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
773 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 773 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
774 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 774 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
775 | if (oneone) | 775 | if (oneone) |
@@ -779,7 +779,7 @@ testEmptyGet (int poll_flag) | |||
779 | /* NOTE: use of CONNECTTIMEOUT without also | 779 | /* NOTE: use of CONNECTTIMEOUT without also |
780 | setting NOSIGNAL results in really weird | 780 | setting NOSIGNAL results in really weird |
781 | crashes on my system!*/ | 781 | crashes on my system!*/ |
782 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 782 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
783 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 783 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
784 | { | 784 | { |
785 | fprintf (stderr, | 785 | fprintf (stderr, |
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c index 66a9fbde..c7be5c83 100644 --- a/src/testcurl/test_get_chunked.c +++ b/src/testcurl/test_get_chunked.c | |||
@@ -213,14 +213,14 @@ testInternalGet () | |||
213 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 213 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
214 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 214 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
215 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 215 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
216 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 216 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
217 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 217 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
218 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 218 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
219 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 219 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
220 | /* NOTE: use of CONNECTTIMEOUT without also | 220 | /* NOTE: use of CONNECTTIMEOUT without also |
221 | * setting NOSIGNAL results in really weird | 221 | * setting NOSIGNAL results in really weird |
222 | * crashes on my system! */ | 222 | * crashes on my system! */ |
223 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 223 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
224 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 224 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
225 | { | 225 | { |
226 | fprintf (stderr, | 226 | fprintf (stderr, |
@@ -270,14 +270,14 @@ testMultithreadedGet () | |||
270 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 270 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
271 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 271 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
272 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 272 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
273 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 273 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
274 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 274 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
275 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 275 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
276 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 276 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
277 | /* NOTE: use of CONNECTTIMEOUT without also | 277 | /* NOTE: use of CONNECTTIMEOUT without also |
278 | * setting NOSIGNAL results in really weird | 278 | * setting NOSIGNAL results in really weird |
279 | * crashes on my system! */ | 279 | * crashes on my system! */ |
280 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 280 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
281 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 281 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
282 | { | 282 | { |
283 | fprintf (stderr, | 283 | fprintf (stderr, |
@@ -328,14 +328,14 @@ testMultithreadedPoolGet () | |||
328 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 328 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
329 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 329 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
330 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 330 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
331 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 331 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
332 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 332 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
333 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 333 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
334 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 334 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
335 | /* NOTE: use of CONNECTTIMEOUT without also | 335 | /* NOTE: use of CONNECTTIMEOUT without also |
336 | * setting NOSIGNAL results in really weird | 336 | * setting NOSIGNAL results in really weird |
337 | * crashes on my system! */ | 337 | * crashes on my system! */ |
338 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 338 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
339 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 339 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
340 | { | 340 | { |
341 | fprintf (stderr, | 341 | fprintf (stderr, |
@@ -400,14 +400,14 @@ testExternalGet () | |||
400 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 400 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
401 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 401 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
402 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 402 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
403 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 403 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
404 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 404 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
405 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 405 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
406 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); | 406 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); |
407 | /* NOTE: use of CONNECTTIMEOUT without also | 407 | /* NOTE: use of CONNECTTIMEOUT without also |
408 | * setting NOSIGNAL results in really weird | 408 | * setting NOSIGNAL results in really weird |
409 | * crashes on my system! */ | 409 | * crashes on my system! */ |
410 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 410 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
411 | 411 | ||
412 | 412 | ||
413 | multi = curl_multi_init (); | 413 | multi = curl_multi_init (); |
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, |
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c index 48be99f7..35ae6645 100644 --- a/src/testcurl/test_iplimit.c +++ b/src/testcurl/test_iplimit.c | |||
@@ -167,7 +167,7 @@ testMultithreadedGet () | |||
167 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 167 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
168 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 168 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
169 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc[i]); | 169 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc[i]); |
170 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 170 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
171 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 171 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
172 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); | 172 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); |
173 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 173 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -175,7 +175,7 @@ testMultithreadedGet () | |||
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 | 179 | ||
180 | errornum = curl_easy_perform (c); | 180 | errornum = curl_easy_perform (c); |
181 | if (CURLE_OK == errornum) | 181 | if (CURLE_OK == errornum) |
@@ -274,7 +274,7 @@ testMultithreadedPoolGet () | |||
274 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 274 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
275 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 275 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
276 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc[i]); | 276 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc[i]); |
277 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 277 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
278 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 278 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
279 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); | 279 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); |
280 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 280 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -282,7 +282,7 @@ testMultithreadedPoolGet () | |||
282 | /* NOTE: use of CONNECTTIMEOUT without also | 282 | /* NOTE: use of CONNECTTIMEOUT without also |
283 | * setting NOSIGNAL results in really weird | 283 | * setting NOSIGNAL results in really weird |
284 | * crashes on my system! */ | 284 | * crashes on my system! */ |
285 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 285 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
286 | 286 | ||
287 | errornum = curl_easy_perform (c); | 287 | errornum = curl_easy_perform (c); |
288 | if ( ( (CURLE_OK != errornum) && (i < 2) ) || | 288 | if ( ( (CURLE_OK != errornum) && (i < 2) ) || |
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c index f4c767cc..352a1732 100644 --- a/src/testcurl/test_large_put.c +++ b/src/testcurl/test_large_put.c | |||
@@ -223,7 +223,7 @@ testPutInternalThread (unsigned int add_flag) | |||
223 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 223 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
224 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 224 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
225 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 225 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
226 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 226 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
227 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 227 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
228 | if (oneone) | 228 | if (oneone) |
229 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 229 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -233,7 +233,7 @@ testPutInternalThread (unsigned int add_flag) | |||
233 | /* NOTE: use of CONNECTTIMEOUT without also | 233 | /* NOTE: use of CONNECTTIMEOUT without also |
234 | * setting NOSIGNAL results in really weird | 234 | * setting NOSIGNAL results in really weird |
235 | * crashes on my system! */ | 235 | * crashes on my system! */ |
236 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 236 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
237 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 237 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
238 | { | 238 | { |
239 | fprintf (stderr, | 239 | fprintf (stderr, |
@@ -303,7 +303,7 @@ testPutThreadPerConn (unsigned int add_flag) | |||
303 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 303 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
304 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 304 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
305 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 305 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
306 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 306 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
307 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 307 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
308 | if (oneone) | 308 | if (oneone) |
309 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 309 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -313,7 +313,7 @@ testPutThreadPerConn (unsigned int add_flag) | |||
313 | /* NOTE: use of CONNECTTIMEOUT without also | 313 | /* NOTE: use of CONNECTTIMEOUT without also |
314 | * setting NOSIGNAL results in really weird | 314 | * setting NOSIGNAL results in really weird |
315 | * crashes on my system! */ | 315 | * crashes on my system! */ |
316 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 316 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
317 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 317 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
318 | { | 318 | { |
319 | fprintf (stderr, | 319 | fprintf (stderr, |
@@ -386,7 +386,7 @@ testPutThreadPool (unsigned int add_flag) | |||
386 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 386 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
387 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 387 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
388 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 388 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
389 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 389 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
390 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 390 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
391 | if (oneone) | 391 | if (oneone) |
392 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 392 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -396,7 +396,7 @@ testPutThreadPool (unsigned int add_flag) | |||
396 | /* NOTE: use of CONNECTTIMEOUT without also | 396 | /* NOTE: use of CONNECTTIMEOUT without also |
397 | * setting NOSIGNAL results in really weird | 397 | * setting NOSIGNAL results in really weird |
398 | * crashes on my system! */ | 398 | * crashes on my system! */ |
399 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 399 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
400 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 400 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
401 | { | 401 | { |
402 | fprintf (stderr, | 402 | fprintf (stderr, |
@@ -483,7 +483,7 @@ testPutExternal (void) | |||
483 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 483 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
484 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 484 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
485 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 485 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
486 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 486 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
487 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 487 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
488 | if (oneone) | 488 | if (oneone) |
489 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 489 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -493,7 +493,7 @@ testPutExternal (void) | |||
493 | /* NOTE: use of CONNECTTIMEOUT without also | 493 | /* NOTE: use of CONNECTTIMEOUT without also |
494 | * setting NOSIGNAL results in really weird | 494 | * setting NOSIGNAL results in really weird |
495 | * crashes on my system! */ | 495 | * crashes on my system! */ |
496 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 496 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
497 | 497 | ||
498 | 498 | ||
499 | multi = curl_multi_init (); | 499 | multi = curl_multi_init (); |
diff --git a/src/testcurl/test_long_header.c b/src/testcurl/test_long_header.c index 7e5dc49c..80842622 100644 --- a/src/testcurl/test_long_header.c +++ b/src/testcurl/test_long_header.c | |||
@@ -147,7 +147,7 @@ testLongUrlGet () | |||
147 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 147 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
148 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 148 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
149 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 149 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
150 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 150 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
151 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 151 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
152 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 152 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
153 | if (oneone) | 153 | if (oneone) |
@@ -157,7 +157,7 @@ testLongUrlGet () | |||
157 | /* NOTE: use of CONNECTTIMEOUT without also | 157 | /* NOTE: use of CONNECTTIMEOUT without also |
158 | setting NOSIGNAL results in really weird | 158 | setting NOSIGNAL results in really weird |
159 | crashes on my system! */ | 159 | crashes on my system! */ |
160 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 160 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
161 | if (CURLE_OK == curl_easy_perform (c)) | 161 | if (CURLE_OK == curl_easy_perform (c)) |
162 | { | 162 | { |
163 | curl_easy_cleanup (c); | 163 | curl_easy_cleanup (c); |
@@ -241,7 +241,7 @@ testLongHeaderGet () | |||
241 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 241 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
242 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 242 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
243 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 243 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
244 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 244 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
245 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 245 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
246 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 246 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
247 | if (oneone) | 247 | if (oneone) |
@@ -251,7 +251,7 @@ testLongHeaderGet () | |||
251 | /* NOTE: use of CONNECTTIMEOUT without also | 251 | /* NOTE: use of CONNECTTIMEOUT without also |
252 | setting NOSIGNAL results in really weird | 252 | setting NOSIGNAL results in really weird |
253 | crashes on my system! */ | 253 | crashes on my system! */ |
254 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 254 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
255 | if (CURLE_OK == curl_easy_perform (c)) | 255 | if (CURLE_OK == curl_easy_perform (c)) |
256 | { | 256 | { |
257 | curl_easy_cleanup (c); | 257 | curl_easy_cleanup (c); |
diff --git a/src/testcurl/test_parse_cookies.c b/src/testcurl/test_parse_cookies.c index 4ed3717f..c09846d8 100644 --- a/src/testcurl/test_parse_cookies.c +++ b/src/testcurl/test_parse_cookies.c | |||
@@ -160,7 +160,7 @@ testExternalGet () | |||
160 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 160 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
161 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 161 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
162 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 162 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
163 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 163 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
164 | /* note that the string below intentionally uses the | 164 | /* note that the string below intentionally uses the |
165 | various ways cookies can be specified to exercise the | 165 | various ways cookies can be specified to exercise the |
166 | parser! Do not change! */ | 166 | parser! Do not change! */ |
@@ -175,7 +175,7 @@ testExternalGet () | |||
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 | 179 | ||
180 | 180 | ||
181 | multi = curl_multi_init (); | 181 | multi = curl_multi_init (); |
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c index 11de0676..03452a2f 100644 --- a/src/testcurl/test_post.c +++ b/src/testcurl/test_post.c | |||
@@ -208,7 +208,7 @@ testInternalPost () | |||
208 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 208 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
209 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 209 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
210 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 210 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
211 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 211 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
212 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 212 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
213 | if (oneone) | 213 | if (oneone) |
214 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 214 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -218,7 +218,7 @@ testInternalPost () | |||
218 | /* NOTE: use of CONNECTTIMEOUT without also | 218 | /* NOTE: use of CONNECTTIMEOUT without also |
219 | * setting NOSIGNAL results in really weird | 219 | * setting NOSIGNAL results in really weird |
220 | * crashes on my system! */ | 220 | * crashes on my system! */ |
221 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 221 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
222 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 222 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
223 | { | 223 | { |
224 | fprintf (stderr, | 224 | fprintf (stderr, |
@@ -281,7 +281,7 @@ testMultithreadedPost () | |||
281 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 281 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
282 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 282 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
283 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 283 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
285 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 285 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
286 | if (oneone) | 286 | if (oneone) |
287 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 287 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -291,7 +291,7 @@ testMultithreadedPost () | |||
291 | /* NOTE: use of CONNECTTIMEOUT without also | 291 | /* NOTE: use of CONNECTTIMEOUT without also |
292 | * setting NOSIGNAL results in really weird | 292 | * setting NOSIGNAL results in really weird |
293 | * crashes on my system! */ | 293 | * crashes on my system! */ |
294 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 294 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
295 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 295 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
296 | { | 296 | { |
297 | fprintf (stderr, | 297 | fprintf (stderr, |
@@ -355,7 +355,7 @@ testMultithreadedPoolPost () | |||
355 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 355 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
356 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 356 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
357 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 357 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
358 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 358 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
359 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 359 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
360 | if (oneone) | 360 | if (oneone) |
361 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 361 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -365,7 +365,7 @@ testMultithreadedPoolPost () | |||
365 | /* NOTE: use of CONNECTTIMEOUT without also | 365 | /* NOTE: use of CONNECTTIMEOUT without also |
366 | * setting NOSIGNAL results in really weird | 366 | * setting NOSIGNAL results in really weird |
367 | * crashes on my system! */ | 367 | * crashes on my system! */ |
368 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 368 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
369 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 369 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
370 | { | 370 | { |
371 | fprintf (stderr, | 371 | fprintf (stderr, |
@@ -443,7 +443,7 @@ testExternalPost () | |||
443 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 443 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
444 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 444 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
445 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 445 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
446 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 446 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
447 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 447 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
448 | if (oneone) | 448 | if (oneone) |
449 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 449 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -453,7 +453,7 @@ testExternalPost () | |||
453 | /* NOTE: use of CONNECTTIMEOUT without also | 453 | /* NOTE: use of CONNECTTIMEOUT without also |
454 | * setting NOSIGNAL results in really weird | 454 | * setting NOSIGNAL results in really weird |
455 | * crashes on my system! */ | 455 | * crashes on my system! */ |
456 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 456 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
457 | 457 | ||
458 | 458 | ||
459 | multi = curl_multi_init (); | 459 | multi = curl_multi_init (); |
@@ -687,7 +687,7 @@ testMultithreadedPostCancelPart(int flags) | |||
687 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, NULL); | 687 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, NULL); |
688 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, crbc.size); | 688 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, crbc.size); |
689 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 689 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
690 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 690 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
691 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 691 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
692 | if (oneone) | 692 | if (oneone) |
693 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 693 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -697,7 +697,7 @@ testMultithreadedPostCancelPart(int flags) | |||
697 | /* NOTE: use of CONNECTTIMEOUT without also | 697 | /* NOTE: use of CONNECTTIMEOUT without also |
698 | * setting NOSIGNAL results in really weird | 698 | * setting NOSIGNAL results in really weird |
699 | * crashes on my system! */ | 699 | * crashes on my system! */ |
700 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 700 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
701 | 701 | ||
702 | if (flags & FLAG_CHUNKED) | 702 | if (flags & FLAG_CHUNKED) |
703 | headers = curl_slist_append(headers, "Transfer-Encoding: chunked"); | 703 | headers = curl_slist_append(headers, "Transfer-Encoding: chunked"); |
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c index 6edaced1..6da54a95 100644 --- a/src/testcurl/test_post_loop.c +++ b/src/testcurl/test_post_loop.c | |||
@@ -162,7 +162,7 @@ testInternalPost () | |||
162 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 162 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
163 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 163 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
164 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 164 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
165 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 165 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
166 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 166 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
167 | if (oneone) | 167 | if (oneone) |
168 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 168 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -172,7 +172,7 @@ testInternalPost () | |||
172 | /* NOTE: use of CONNECTTIMEOUT without also | 172 | /* NOTE: use of CONNECTTIMEOUT without also |
173 | * setting NOSIGNAL results in really weird | 173 | * setting NOSIGNAL results in really weird |
174 | * crashes on my system! */ | 174 | * crashes on my system! */ |
175 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 175 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
176 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 176 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
177 | { | 177 | { |
178 | fprintf (stderr, | 178 | fprintf (stderr, |
@@ -250,7 +250,7 @@ testMultithreadedPost () | |||
250 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 250 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
251 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 251 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
252 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 252 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
253 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 253 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
254 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 254 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
255 | if (oneone) | 255 | if (oneone) |
256 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 256 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -260,7 +260,7 @@ testMultithreadedPost () | |||
260 | /* NOTE: use of CONNECTTIMEOUT without also | 260 | /* NOTE: use of CONNECTTIMEOUT without also |
261 | * setting NOSIGNAL results in really weird | 261 | * setting NOSIGNAL results in really weird |
262 | * crashes on my system! */ | 262 | * crashes on my system! */ |
263 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 263 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
264 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 264 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
265 | { | 265 | { |
266 | fprintf (stderr, | 266 | fprintf (stderr, |
@@ -337,7 +337,7 @@ testMultithreadedPoolPost () | |||
337 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 337 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
338 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 338 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
339 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 339 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
340 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 340 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
341 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 341 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
342 | if (oneone) | 342 | if (oneone) |
343 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 343 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -347,7 +347,7 @@ testMultithreadedPoolPost () | |||
347 | /* NOTE: use of CONNECTTIMEOUT without also | 347 | /* NOTE: use of CONNECTTIMEOUT without also |
348 | * setting NOSIGNAL results in really weird | 348 | * setting NOSIGNAL results in really weird |
349 | * crashes on my system! */ | 349 | * crashes on my system! */ |
350 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 350 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
351 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 351 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
352 | { | 352 | { |
353 | fprintf (stderr, | 353 | fprintf (stderr, |
@@ -447,7 +447,7 @@ testExternalPost () | |||
447 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 447 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
448 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 448 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
449 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 449 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
450 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 450 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
451 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 451 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
452 | if (oneone) | 452 | if (oneone) |
453 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 453 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -457,7 +457,7 @@ testExternalPost () | |||
457 | /* NOTE: use of CONNECTTIMEOUT without also | 457 | /* NOTE: use of CONNECTTIMEOUT without also |
458 | * setting NOSIGNAL results in really weird | 458 | * setting NOSIGNAL results in really weird |
459 | * crashes on my system! */ | 459 | * crashes on my system! */ |
460 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 460 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
461 | mret = curl_multi_add_handle (multi, c); | 461 | mret = curl_multi_add_handle (multi, c); |
462 | if (mret != CURLM_OK) | 462 | if (mret != CURLM_OK) |
463 | { | 463 | { |
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c index ff39c5a4..723bde0f 100644 --- a/src/testcurl/test_postform.c +++ b/src/testcurl/test_postform.c | |||
@@ -222,7 +222,7 @@ testInternalPost () | |||
222 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 222 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
223 | pd = make_form (); | 223 | pd = make_form (); |
224 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 224 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
225 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 225 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
226 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 226 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
227 | if (oneone) | 227 | if (oneone) |
228 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 228 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -232,7 +232,7 @@ testInternalPost () | |||
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, 1L); |
236 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 236 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
237 | { | 237 | { |
238 | fprintf (stderr, | 238 | fprintf (stderr, |
@@ -297,7 +297,7 @@ testMultithreadedPost () | |||
297 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 297 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
298 | pd = make_form (); | 298 | pd = make_form (); |
299 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 299 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
300 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 300 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
301 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 301 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
302 | if (oneone) | 302 | if (oneone) |
303 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 303 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -307,7 +307,7 @@ testMultithreadedPost () | |||
307 | /* NOTE: use of CONNECTTIMEOUT without also | 307 | /* NOTE: use of CONNECTTIMEOUT without also |
308 | * setting NOSIGNAL results in really weird | 308 | * setting NOSIGNAL results in really weird |
309 | * crashes on my system! */ | 309 | * crashes on my system! */ |
310 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 310 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
311 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 311 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
312 | { | 312 | { |
313 | fprintf (stderr, | 313 | fprintf (stderr, |
@@ -373,7 +373,7 @@ testMultithreadedPoolPost () | |||
373 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 373 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
374 | pd = make_form (); | 374 | pd = make_form (); |
375 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 375 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
376 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 376 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
377 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 377 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
378 | if (oneone) | 378 | if (oneone) |
379 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 379 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -383,7 +383,7 @@ testMultithreadedPoolPost () | |||
383 | /* NOTE: use of CONNECTTIMEOUT without also | 383 | /* NOTE: use of CONNECTTIMEOUT without also |
384 | * setting NOSIGNAL results in really weird | 384 | * setting NOSIGNAL results in really weird |
385 | * crashes on my system! */ | 385 | * crashes on my system! */ |
386 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 386 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
387 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 387 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
388 | { | 388 | { |
389 | fprintf (stderr, | 389 | fprintf (stderr, |
@@ -463,7 +463,7 @@ testExternalPost () | |||
463 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 463 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
464 | pd = make_form (); | 464 | pd = make_form (); |
465 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 465 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
466 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 466 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
467 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 467 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
468 | if (oneone) | 468 | if (oneone) |
469 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 469 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -473,7 +473,7 @@ testExternalPost () | |||
473 | /* NOTE: use of CONNECTTIMEOUT without also | 473 | /* NOTE: use of CONNECTTIMEOUT without also |
474 | * setting NOSIGNAL results in really weird | 474 | * setting NOSIGNAL results in really weird |
475 | * crashes on my system! */ | 475 | * crashes on my system! */ |
476 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 476 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
477 | 477 | ||
478 | 478 | ||
479 | multi = curl_multi_init (); | 479 | multi = curl_multi_init (); |
diff --git a/src/testcurl/test_process_arguments.c b/src/testcurl/test_process_arguments.c index 680e75b1..0817836d 100644 --- a/src/testcurl/test_process_arguments.c +++ b/src/testcurl/test_process_arguments.c | |||
@@ -165,7 +165,7 @@ testExternalGet () | |||
165 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 165 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
166 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 166 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
167 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 167 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
168 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 168 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
169 | if (oneone) | 169 | if (oneone) |
170 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 170 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
171 | else | 171 | else |
@@ -175,7 +175,7 @@ testExternalGet () | |||
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 | 179 | ||
180 | 180 | ||
181 | multi = curl_multi_init (); | 181 | multi = curl_multi_init (); |
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c index 525ccfc8..a1237c78 100644 --- a/src/testcurl/test_process_headers.c +++ b/src/testcurl/test_process_headers.c | |||
@@ -188,7 +188,7 @@ testInternalGet () | |||
188 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 188 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
189 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 189 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
190 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 190 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
191 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 191 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
192 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 192 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
193 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 193 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
194 | if (oneone) | 194 | if (oneone) |
@@ -198,7 +198,7 @@ testInternalGet () | |||
198 | /* NOTE: use of CONNECTTIMEOUT without also | 198 | /* NOTE: use of CONNECTTIMEOUT without also |
199 | setting NOSIGNAL results in really weird | 199 | setting NOSIGNAL results in really weird |
200 | crashes on my system! */ | 200 | crashes on my system! */ |
201 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 201 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
202 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 202 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
203 | { | 203 | { |
204 | fprintf (stderr, | 204 | fprintf (stderr, |
@@ -256,7 +256,7 @@ testMultithreadedGet () | |||
256 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 256 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
257 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 257 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
258 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 258 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
259 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 259 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
260 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 260 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
261 | if (oneone) | 261 | if (oneone) |
262 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 262 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -266,7 +266,7 @@ testMultithreadedGet () | |||
266 | /* NOTE: use of CONNECTTIMEOUT without also | 266 | /* NOTE: use of CONNECTTIMEOUT without also |
267 | setting NOSIGNAL results in really weird | 267 | setting NOSIGNAL results in really weird |
268 | crashes on my system! */ | 268 | crashes on my system! */ |
269 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 269 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
270 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 270 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
271 | { | 271 | { |
272 | fprintf (stderr, | 272 | fprintf (stderr, |
@@ -325,7 +325,7 @@ testMultithreadedPoolGet () | |||
325 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 325 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
326 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 326 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
327 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 327 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
328 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 328 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
329 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 329 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
330 | if (oneone) | 330 | if (oneone) |
331 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 331 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -335,7 +335,7 @@ testMultithreadedPoolGet () | |||
335 | /* NOTE: use of CONNECTTIMEOUT without also | 335 | /* NOTE: use of CONNECTTIMEOUT without also |
336 | setting NOSIGNAL results in really weird | 336 | setting NOSIGNAL results in really weird |
337 | crashes on my system! */ | 337 | crashes on my system! */ |
338 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 338 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
339 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 339 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
340 | { | 340 | { |
341 | fprintf (stderr, | 341 | fprintf (stderr, |
@@ -408,7 +408,7 @@ testExternalGet () | |||
408 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 408 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
409 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 409 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
410 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 410 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
411 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 411 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
412 | if (oneone) | 412 | if (oneone) |
413 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 413 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
414 | else | 414 | else |
@@ -418,7 +418,7 @@ testExternalGet () | |||
418 | /* NOTE: use of CONNECTTIMEOUT without also | 418 | /* NOTE: use of CONNECTTIMEOUT without also |
419 | setting NOSIGNAL results in really weird | 419 | setting NOSIGNAL results in really weird |
420 | crashes on my system! */ | 420 | crashes on my system! */ |
421 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 421 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
422 | 422 | ||
423 | 423 | ||
424 | multi = curl_multi_init (); | 424 | multi = curl_multi_init (); |
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, ©Buffer); | |||
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, ©Buffer); | |||
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 (); |
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c index 017bff99..9f875a40 100644 --- a/src/testcurl/test_put_chunked.c +++ b/src/testcurl/test_put_chunked.c | |||
@@ -175,14 +175,14 @@ testInternalPut () | |||
175 | /* | 175 | /* |
176 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 176 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
177 | */ | 177 | */ |
178 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 178 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
179 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 179 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
180 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 180 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
181 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 181 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
182 | /* NOTE: use of CONNECTTIMEOUT without also | 182 | /* NOTE: use of CONNECTTIMEOUT without also |
183 | * setting NOSIGNAL results in really weird | 183 | * setting NOSIGNAL results in really weird |
184 | * crashes on my system! */ | 184 | * crashes on my system! */ |
185 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 185 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
186 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 186 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
187 | { | 187 | { |
188 | fprintf (stderr, | 188 | fprintf (stderr, |
@@ -246,14 +246,14 @@ testMultithreadedPut () | |||
246 | /* | 246 | /* |
247 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 247 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
248 | */ | 248 | */ |
249 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 249 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
250 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 250 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
251 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 251 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
252 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 252 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
253 | /* NOTE: use of CONNECTTIMEOUT without also | 253 | /* NOTE: use of CONNECTTIMEOUT without also |
254 | * setting NOSIGNAL results in really weird | 254 | * setting NOSIGNAL results in really weird |
255 | * crashes on my system! */ | 255 | * crashes on my system! */ |
256 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 256 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
257 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 257 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
258 | { | 258 | { |
259 | fprintf (stderr, | 259 | fprintf (stderr, |
@@ -319,14 +319,14 @@ testMultithreadedPoolPut () | |||
319 | /* | 319 | /* |
320 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 320 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
321 | */ | 321 | */ |
322 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 322 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
323 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 323 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
324 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 324 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
325 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 325 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
326 | /* NOTE: use of CONNECTTIMEOUT without also | 326 | /* NOTE: use of CONNECTTIMEOUT without also |
327 | * setting NOSIGNAL results in really weird | 327 | * setting NOSIGNAL results in really weird |
328 | * crashes on my system! */ | 328 | * crashes on my system! */ |
329 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 329 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
330 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 330 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
331 | { | 331 | { |
332 | fprintf (stderr, | 332 | fprintf (stderr, |
@@ -407,14 +407,14 @@ testExternalPut () | |||
407 | /* | 407 | /* |
408 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 408 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
409 | */ | 409 | */ |
410 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 410 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
411 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 411 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
412 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 412 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
413 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 413 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
414 | /* NOTE: use of CONNECTTIMEOUT without also | 414 | /* NOTE: use of CONNECTTIMEOUT without also |
415 | * setting NOSIGNAL results in really weird | 415 | * setting NOSIGNAL results in really weird |
416 | * crashes on my system! */ | 416 | * crashes on my system! */ |
417 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 417 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
418 | 418 | ||
419 | 419 | ||
420 | multi = curl_multi_init (); | 420 | multi = curl_multi_init (); |
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c index 5795898a..69b07618 100644 --- a/src/testcurl/test_quiesce.c +++ b/src/testcurl/test_quiesce.c | |||
@@ -185,14 +185,14 @@ setupCURL (void *cbc) | |||
185 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 185 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
186 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 186 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
187 | curl_easy_setopt (c, CURLOPT_WRITEDATA, cbc); | 187 | curl_easy_setopt (c, CURLOPT_WRITEDATA, cbc); |
188 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 188 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
189 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, 150L); | 189 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, 150L); |
190 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, 150L); | 190 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, 150L); |
191 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 191 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
192 | /* NOTE: use of CONNECTTIMEOUT without also | 192 | /* NOTE: use of CONNECTTIMEOUT without also |
193 | setting NOSIGNAL results in really weird | 193 | setting NOSIGNAL results in really weird |
194 | crashes on my system!*/ | 194 | crashes on my system!*/ |
195 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 195 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
196 | 196 | ||
197 | return c; | 197 | return c; |
198 | } | 198 | } |
diff --git a/src/testcurl/test_timeout.c b/src/testcurl/test_timeout.c index 0dfc7e65..d87bb368 100644 --- a/src/testcurl/test_timeout.c +++ b/src/testcurl/test_timeout.c | |||
@@ -211,7 +211,7 @@ testWithoutTimeout () | |||
211 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 211 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
212 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 212 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
213 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 213 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
214 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 214 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
215 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 215 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
216 | if (oneone) | 216 | if (oneone) |
217 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 217 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -221,7 +221,7 @@ testWithoutTimeout () | |||
221 | /* NOTE: use of CONNECTTIMEOUT without also | 221 | /* NOTE: use of CONNECTTIMEOUT without also |
222 | * setting NOSIGNAL results in really weird | 222 | * setting NOSIGNAL results in really weird |
223 | * crashes on my system! */ | 223 | * crashes on my system! */ |
224 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 224 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
225 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 225 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
226 | { | 226 | { |
227 | curl_easy_cleanup (c); | 227 | curl_easy_cleanup (c); |
@@ -285,7 +285,7 @@ testWithTimeout () | |||
285 | curl_easy_setopt (c, CURLOPT_READDATA, &testWithTimeout); | 285 | curl_easy_setopt (c, CURLOPT_READDATA, &testWithTimeout); |
286 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 286 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
287 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 287 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
288 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 288 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
289 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 289 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
290 | if (oneone) | 290 | if (oneone) |
291 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 291 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -295,7 +295,7 @@ testWithTimeout () | |||
295 | /* NOTE: use of CONNECTTIMEOUT without also | 295 | /* NOTE: use of CONNECTTIMEOUT without also |
296 | * setting NOSIGNAL results in really weird | 296 | * setting NOSIGNAL results in really weird |
297 | * crashes on my system! */ | 297 | * crashes on my system! */ |
298 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 298 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
299 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 299 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
300 | { | 300 | { |
301 | curl_easy_cleanup (c); | 301 | curl_easy_cleanup (c); |
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c index 9d2d8517..d7c133ae 100644 --- a/src/testcurl/test_urlparse.c +++ b/src/testcurl/test_urlparse.c | |||
@@ -164,7 +164,7 @@ testInternalGet (int poll_flag) | |||
164 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 164 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
165 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 165 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
166 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 166 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
167 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 167 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
168 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 168 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
169 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 169 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
170 | if (oneone) | 170 | if (oneone) |
@@ -174,7 +174,7 @@ testInternalGet (int poll_flag) | |||
174 | /* NOTE: use of CONNECTTIMEOUT without also | 174 | /* NOTE: use of CONNECTTIMEOUT without also |
175 | setting NOSIGNAL results in really weird | 175 | setting NOSIGNAL results in really weird |
176 | crashes on my system!*/ | 176 | crashes on my system!*/ |
177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
178 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 178 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
179 | { | 179 | { |
180 | fprintf (stderr, | 180 | fprintf (stderr, |
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c index 223b85e5..08954226 100644 --- a/src/testzzuf/test_get.c +++ b/src/testzzuf/test_get.c | |||
@@ -117,7 +117,7 @@ testInternalGet () | |||
117 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 117 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
118 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 118 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
119 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 119 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
120 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 120 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
121 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 121 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
122 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 122 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
123 | if (oneone) | 123 | if (oneone) |
@@ -127,7 +127,7 @@ testInternalGet () | |||
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, 1L); |
131 | curl_easy_perform (c); | 131 | curl_easy_perform (c); |
132 | curl_easy_cleanup (c); | 132 | curl_easy_cleanup (c); |
133 | } | 133 | } |
@@ -161,7 +161,7 @@ testMultithreadedGet () | |||
161 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 161 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
162 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 162 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
163 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 163 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
166 | if (oneone) | 166 | if (oneone) |
167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -171,7 +171,7 @@ testMultithreadedGet () | |||
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, 1L); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
177 | } | 177 | } |
@@ -222,7 +222,7 @@ testExternalGet () | |||
222 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 222 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
223 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 223 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
224 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 224 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
225 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 225 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
226 | if (oneone) | 226 | if (oneone) |
227 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 227 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
228 | else | 228 | else |
@@ -232,7 +232,7 @@ testExternalGet () | |||
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, 1L); |
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) |
238 | { | 238 | { |
diff --git a/src/testzzuf/test_get_chunked.c b/src/testzzuf/test_get_chunked.c index 44828853..2a16202b 100644 --- a/src/testzzuf/test_get_chunked.c +++ b/src/testzzuf/test_get_chunked.c | |||
@@ -156,14 +156,14 @@ testInternalGet () | |||
156 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 156 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
157 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 157 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
158 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 158 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
159 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 159 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
160 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 160 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
163 | /* NOTE: use of CONNECTTIMEOUT without also | 163 | /* NOTE: use of CONNECTTIMEOUT without also |
164 | * setting NOSIGNAL results in really weird | 164 | * setting NOSIGNAL results in really weird |
165 | * crashes on my system! */ | 165 | * crashes on my system! */ |
166 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 166 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
167 | curl_easy_perform (c); | 167 | curl_easy_perform (c); |
168 | curl_easy_cleanup (c); | 168 | curl_easy_cleanup (c); |
169 | } | 169 | } |
@@ -197,14 +197,14 @@ testMultithreadedGet () | |||
197 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 197 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
198 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 198 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
199 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 199 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
203 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 203 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
204 | /* NOTE: use of CONNECTTIMEOUT without also | 204 | /* NOTE: use of CONNECTTIMEOUT without also |
205 | * setting NOSIGNAL results in really weird | 205 | * setting NOSIGNAL results in really weird |
206 | * crashes on my system! */ | 206 | * crashes on my system! */ |
207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
208 | curl_easy_perform (c); | 208 | curl_easy_perform (c); |
209 | curl_easy_cleanup (c); | 209 | curl_easy_cleanup (c); |
210 | } | 210 | } |
@@ -255,14 +255,14 @@ testExternalGet () | |||
255 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 255 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
256 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 256 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
257 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 257 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
259 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 259 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
260 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 260 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
261 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 261 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
262 | /* NOTE: use of CONNECTTIMEOUT without also | 262 | /* NOTE: use of CONNECTTIMEOUT without also |
263 | * setting NOSIGNAL results in really weird | 263 | * setting NOSIGNAL results in really weird |
264 | * crashes on my system! */ | 264 | * crashes on my system! */ |
265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
266 | mret = curl_multi_add_handle (multi, c); | 266 | mret = curl_multi_add_handle (multi, c); |
267 | if (mret != CURLM_OK) | 267 | if (mret != CURLM_OK) |
268 | { | 268 | { |
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c index 63555d50..12a396bb 100644 --- a/src/testzzuf/test_long_header.c +++ b/src/testzzuf/test_long_header.c | |||
@@ -132,7 +132,7 @@ testLongUrlGet () | |||
132 | curl_easy_setopt (c, CURLOPT_URL, url); | 132 | curl_easy_setopt (c, CURLOPT_URL, url); |
133 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 133 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
134 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 134 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
135 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 135 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
136 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 136 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
137 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 137 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
138 | if (oneone) | 138 | if (oneone) |
@@ -142,7 +142,7 @@ testLongUrlGet () | |||
142 | /* NOTE: use of CONNECTTIMEOUT without also | 142 | /* NOTE: use of CONNECTTIMEOUT without also |
143 | * setting NOSIGNAL results in really weird | 143 | * setting NOSIGNAL results in really weird |
144 | * crashes on my system! */ | 144 | * crashes on my system! */ |
145 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 145 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
146 | curl_easy_perform (c); | 146 | curl_easy_perform (c); |
147 | curl_easy_cleanup (c); | 147 | curl_easy_cleanup (c); |
148 | free (url); | 148 | free (url); |
@@ -195,7 +195,7 @@ testLongHeaderGet () | |||
195 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 195 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
196 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 196 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
197 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 197 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
198 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 198 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
199 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 199 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
200 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 200 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
201 | if (oneone) | 201 | if (oneone) |
@@ -205,7 +205,7 @@ testLongHeaderGet () | |||
205 | /* NOTE: use of CONNECTTIMEOUT without also | 205 | /* NOTE: use of CONNECTTIMEOUT without also |
206 | * setting NOSIGNAL results in really weird | 206 | * setting NOSIGNAL results in really weird |
207 | * crashes on my system! */ | 207 | * crashes on my system! */ |
208 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 208 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
209 | curl_easy_perform (c); | 209 | curl_easy_perform (c); |
210 | curl_slist_free_all (header); | 210 | curl_slist_free_all (header); |
211 | header = NULL; | 211 | header = NULL; |
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c index 836f3395..03b8e5a8 100644 --- a/src/testzzuf/test_post.c +++ b/src/testzzuf/test_post.c | |||
@@ -179,7 +179,7 @@ testInternalPost () | |||
179 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 179 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
180 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 180 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
181 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 181 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
182 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 182 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
183 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 183 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
184 | if (oneone) | 184 | if (oneone) |
185 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 185 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -189,7 +189,7 @@ testInternalPost () | |||
189 | /* NOTE: use of CONNECTTIMEOUT without also | 189 | /* NOTE: use of CONNECTTIMEOUT without also |
190 | * setting NOSIGNAL results in really weird | 190 | * setting NOSIGNAL results in really weird |
191 | * crashes on my system! */ | 191 | * crashes on my system! */ |
192 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 192 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
193 | curl_easy_perform (c); | 193 | curl_easy_perform (c); |
194 | curl_easy_cleanup (c); | 194 | curl_easy_cleanup (c); |
195 | } | 195 | } |
@@ -231,7 +231,7 @@ testMultithreadedPost () | |||
231 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 231 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
232 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 232 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
233 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 233 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
234 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 234 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
235 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 235 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
236 | if (oneone) | 236 | if (oneone) |
237 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 237 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -241,7 +241,7 @@ testMultithreadedPost () | |||
241 | /* NOTE: use of CONNECTTIMEOUT without also | 241 | /* NOTE: use of CONNECTTIMEOUT without also |
242 | * setting NOSIGNAL results in really weird | 242 | * setting NOSIGNAL results in really weird |
243 | * crashes on my system! */ | 243 | * crashes on my system! */ |
244 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 244 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
245 | curl_easy_perform (c); | 245 | curl_easy_perform (c); |
246 | curl_easy_cleanup (c); | 246 | curl_easy_cleanup (c); |
247 | } | 247 | } |
@@ -301,7 +301,7 @@ testExternalPost () | |||
301 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 301 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
302 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 302 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
303 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 303 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
304 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 304 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
305 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 305 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
306 | if (oneone) | 306 | if (oneone) |
307 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 307 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -311,7 +311,7 @@ testExternalPost () | |||
311 | /* NOTE: use of CONNECTTIMEOUT without also | 311 | /* NOTE: use of CONNECTTIMEOUT without also |
312 | * setting NOSIGNAL results in really weird | 312 | * setting NOSIGNAL results in really weird |
313 | * crashes on my system! */ | 313 | * crashes on my system! */ |
314 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 314 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
315 | 315 | ||
316 | 316 | ||
317 | mret = curl_multi_add_handle (multi, c); | 317 | mret = curl_multi_add_handle (multi, c); |
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c index 571c9d99..cbe55b5d 100644 --- a/src/testzzuf/test_post_form.c +++ b/src/testzzuf/test_post_form.c | |||
@@ -196,7 +196,7 @@ testInternalPost () | |||
196 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 196 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
197 | pd = make_form (); | 197 | pd = make_form (); |
198 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 198 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
199 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 199 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
200 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 200 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
201 | if (oneone) | 201 | if (oneone) |
202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -206,7 +206,7 @@ testInternalPost () | |||
206 | /* NOTE: use of CONNECTTIMEOUT without also | 206 | /* NOTE: use of CONNECTTIMEOUT without also |
207 | * setting NOSIGNAL results in really weird | 207 | * setting NOSIGNAL results in really weird |
208 | * crashes on my system! */ | 208 | * crashes on my system! */ |
209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
210 | curl_easy_perform (c); | 210 | curl_easy_perform (c); |
211 | curl_easy_cleanup (c); | 211 | curl_easy_cleanup (c); |
212 | curl_formfree (pd); | 212 | curl_formfree (pd); |
@@ -247,7 +247,7 @@ testMultithreadedPost () | |||
247 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 247 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
248 | pd = make_form (); | 248 | pd = make_form (); |
249 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 249 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
250 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 250 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
251 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 251 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
252 | if (oneone) | 252 | if (oneone) |
253 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 253 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -257,7 +257,7 @@ testMultithreadedPost () | |||
257 | /* NOTE: use of CONNECTTIMEOUT without also | 257 | /* NOTE: use of CONNECTTIMEOUT without also |
258 | * setting NOSIGNAL results in really weird | 258 | * setting NOSIGNAL results in really weird |
259 | * crashes on my system! */ | 259 | * crashes on my system! */ |
260 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 260 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
261 | curl_easy_perform (c); | 261 | curl_easy_perform (c); |
262 | curl_easy_cleanup (c); | 262 | curl_easy_cleanup (c); |
263 | curl_formfree (pd); | 263 | curl_formfree (pd); |
@@ -315,7 +315,7 @@ testExternalPost () | |||
315 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 315 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
316 | pd = make_form (); | 316 | pd = make_form (); |
317 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 317 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
318 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 318 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
319 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 319 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
320 | if (oneone) | 320 | if (oneone) |
321 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 321 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -325,7 +325,7 @@ testExternalPost () | |||
325 | /* NOTE: use of CONNECTTIMEOUT without also | 325 | /* NOTE: use of CONNECTTIMEOUT without also |
326 | * setting NOSIGNAL results in really weird | 326 | * setting NOSIGNAL results in really weird |
327 | * crashes on my system! */ | 327 | * crashes on my system! */ |
328 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 328 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
329 | 329 | ||
330 | mret = curl_multi_add_handle (multi, c); | 330 | mret = curl_multi_add_handle (multi, c); |
331 | if (mret != CURLM_OK) | 331 | if (mret != CURLM_OK) |
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c index 63518ba8..5a237ddd 100644 --- a/src/testzzuf/test_put.c +++ b/src/testzzuf/test_put.c | |||
@@ -146,7 +146,7 @@ testInternalPut () | |||
146 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 146 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
147 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 147 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
148 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 148 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
149 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 149 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
150 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 150 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
151 | if (oneone) | 151 | if (oneone) |
152 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 152 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -156,7 +156,7 @@ testInternalPut () | |||
156 | /* NOTE: use of CONNECTTIMEOUT without also | 156 | /* NOTE: use of CONNECTTIMEOUT without also |
157 | * setting NOSIGNAL results in really weird | 157 | * setting NOSIGNAL results in really weird |
158 | * crashes on my system! */ | 158 | * crashes on my system! */ |
159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
160 | curl_easy_perform (c); | 160 | curl_easy_perform (c); |
161 | curl_easy_cleanup (c); | 161 | curl_easy_cleanup (c); |
162 | } | 162 | } |
@@ -197,7 +197,7 @@ testMultithreadedPut () | |||
197 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 197 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
198 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 198 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
199 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 199 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
202 | if (oneone) | 202 | if (oneone) |
203 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 203 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -207,7 +207,7 @@ testMultithreadedPut () | |||
207 | /* NOTE: use of CONNECTTIMEOUT without also | 207 | /* NOTE: use of CONNECTTIMEOUT without also |
208 | * setting NOSIGNAL results in really weird | 208 | * setting NOSIGNAL results in really weird |
209 | * crashes on my system! */ | 209 | * crashes on my system! */ |
210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
211 | curl_easy_perform (c); | 211 | curl_easy_perform (c); |
212 | curl_easy_cleanup (c); | 212 | curl_easy_cleanup (c); |
213 | } | 213 | } |
@@ -266,7 +266,7 @@ testExternalPut () | |||
266 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 266 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
267 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 267 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
268 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 268 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
270 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 270 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
271 | if (oneone) | 271 | if (oneone) |
272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -276,7 +276,7 @@ testExternalPut () | |||
276 | /* NOTE: use of CONNECTTIMEOUT without also | 276 | /* NOTE: use of CONNECTTIMEOUT without also |
277 | * setting NOSIGNAL results in really weird | 277 | * setting NOSIGNAL results in really weird |
278 | * crashes on my system! */ | 278 | * crashes on my system! */ |
279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
diff --git a/src/testzzuf/test_put_chunked.c b/src/testzzuf/test_put_chunked.c index 642e968a..d016d84e 100644 --- a/src/testzzuf/test_put_chunked.c +++ b/src/testzzuf/test_put_chunked.c | |||
@@ -155,14 +155,14 @@ testInternalPut () | |||
155 | /* | 155 | /* |
156 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 156 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
157 | */ | 157 | */ |
158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
159 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 159 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
160 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 160 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
162 | /* NOTE: use of CONNECTTIMEOUT without also | 162 | /* NOTE: use of CONNECTTIMEOUT without also |
163 | * setting NOSIGNAL results in really weird | 163 | * setting NOSIGNAL results in really weird |
164 | * crashes on my system! */ | 164 | * crashes on my system! */ |
165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
166 | curl_easy_perform (c); | 166 | curl_easy_perform (c); |
167 | curl_easy_cleanup (c); | 167 | curl_easy_cleanup (c); |
168 | } | 168 | } |
@@ -202,14 +202,14 @@ testMultithreadedPut () | |||
202 | /* | 202 | /* |
203 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 203 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
204 | */ | 204 | */ |
205 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 205 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
206 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 206 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
207 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 207 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
208 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); | 208 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); |
209 | /* NOTE: use of CONNECTTIMEOUT without also | 209 | /* NOTE: use of CONNECTTIMEOUT without also |
210 | * setting NOSIGNAL results in really weird | 210 | * setting NOSIGNAL results in really weird |
211 | * crashes on my system! */ | 211 | * crashes on my system! */ |
212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
214 | { | 214 | { |
215 | fprintf (stderr, | 215 | fprintf (stderr, |
@@ -281,14 +281,14 @@ testExternalPut () | |||
281 | /* | 281 | /* |
282 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 282 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
283 | */ | 283 | */ |
284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
285 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 285 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
286 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 286 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
287 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 287 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
288 | /* NOTE: use of CONNECTTIMEOUT without also | 288 | /* NOTE: use of CONNECTTIMEOUT without also |
289 | * setting NOSIGNAL results in really weird | 289 | * setting NOSIGNAL results in really weird |
290 | * crashes on my system! */ | 290 | * crashes on my system! */ |
291 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 291 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
292 | 292 | ||
293 | 293 | ||
294 | mret = curl_multi_add_handle (multi, c); | 294 | mret = curl_multi_add_handle (multi, c); |
diff --git a/src/testzzuf/test_put_large.c b/src/testzzuf/test_put_large.c index 40861b87..815ce77d 100644 --- a/src/testzzuf/test_put_large.c +++ b/src/testzzuf/test_put_large.c | |||
@@ -161,7 +161,7 @@ testInternalPut () | |||
161 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 161 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
162 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 162 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
163 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 163 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
166 | if (oneone) | 166 | if (oneone) |
167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -171,7 +171,7 @@ testInternalPut () | |||
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, 1L); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
177 | } | 177 | } |
@@ -213,7 +213,7 @@ testMultithreadedPut () | |||
213 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 213 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
214 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 214 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
215 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 215 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
216 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 216 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
217 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 217 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
218 | if (oneone) | 218 | if (oneone) |
219 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 219 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -223,7 +223,7 @@ testMultithreadedPut () | |||
223 | /* NOTE: use of CONNECTTIMEOUT without also | 223 | /* NOTE: use of CONNECTTIMEOUT without also |
224 | * setting NOSIGNAL results in really weird | 224 | * setting NOSIGNAL results in really weird |
225 | * crashes on my system! */ | 225 | * crashes on my system! */ |
226 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 226 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
227 | curl_easy_perform (c); | 227 | curl_easy_perform (c); |
228 | curl_easy_cleanup (c); | 228 | curl_easy_cleanup (c); |
229 | } | 229 | } |
@@ -284,7 +284,7 @@ testExternalPut () | |||
284 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 284 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
285 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 285 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
286 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 286 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
287 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 287 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
288 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 288 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
289 | if (oneone) | 289 | if (oneone) |
290 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 290 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -294,7 +294,7 @@ testExternalPut () | |||
294 | /* NOTE: use of CONNECTTIMEOUT without also | 294 | /* NOTE: use of CONNECTTIMEOUT without also |
295 | * setting NOSIGNAL results in really weird | 295 | * setting NOSIGNAL results in really weird |
296 | * crashes on my system! */ | 296 | * crashes on my system! */ |
297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||