diff options
Diffstat (limited to 'src/testcurl/perf_get_concurrent.c')
-rw-r--r-- | src/testcurl/perf_get_concurrent.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c index 76bb42f9..7427ef42 100644 --- a/src/testcurl/perf_get_concurrent.c +++ b/src/testcurl/perf_get_concurrent.c | |||
@@ -188,7 +188,7 @@ thread_gets (void *param) | |||
188 | CURL *c; | 188 | CURL *c; |
189 | CURLcode errornum; | 189 | CURLcode errornum; |
190 | unsigned int i; | 190 | unsigned int i; |
191 | char *const url = (char*) param; | 191 | char *const url = (char *) param; |
192 | 192 | ||
193 | c = curl_easy_init (); | 193 | c = curl_easy_init (); |
194 | curl_easy_setopt (c, CURLOPT_URL, url); | 194 | curl_easy_setopt (c, CURLOPT_URL, url); |
@@ -237,7 +237,7 @@ do_gets (void *param) | |||
237 | port); | 237 | port); |
238 | for (j = 0; j < PAR; j++) | 238 | for (j = 0; j < PAR; j++) |
239 | { | 239 | { |
240 | if (0 != pthread_create (&par[j], NULL, &thread_gets, (void*) url)) | 240 | if (0 != pthread_create (&par[j], NULL, &thread_gets, (void *) url)) |
241 | { | 241 | { |
242 | for (j--; j >= 0; j--) | 242 | for (j--; j >= 0; j--) |
243 | pthread_join (par[j], NULL); | 243 | pthread_join (par[j], NULL); |
@@ -247,7 +247,7 @@ do_gets (void *param) | |||
247 | for (j = 0; j < PAR; j++) | 247 | for (j = 0; j < PAR; j++) |
248 | { | 248 | { |
249 | char *ret_val; | 249 | char *ret_val; |
250 | if ((0 != pthread_join (par[j], (void**) &ret_val)) || | 250 | if ((0 != pthread_join (par[j], (void **) &ret_val)) || |
251 | (NULL != ret_val) ) | 251 | (NULL != ret_val) ) |
252 | err = ret_val; | 252 | err = ret_val; |
253 | } | 253 | } |
@@ -289,7 +289,7 @@ testInternalGet (int port, int poll_flag) | |||
289 | port = (int) dinfo->port; | 289 | port = (int) dinfo->port; |
290 | } | 290 | } |
291 | start_timer (); | 291 | start_timer (); |
292 | ret_val = do_gets ((void*) (intptr_t) port); | 292 | ret_val = do_gets ((void *) (intptr_t) port); |
293 | if (! ret_val) | 293 | if (! ret_val) |
294 | stop (test_desc); | 294 | stop (test_desc); |
295 | MHD_stop_daemon (d); | 295 | MHD_stop_daemon (d); |
@@ -340,7 +340,7 @@ testMultithreadedGet (int port, int poll_flag) | |||
340 | port = (int) dinfo->port; | 340 | port = (int) dinfo->port; |
341 | } | 341 | } |
342 | start_timer (); | 342 | start_timer (); |
343 | ret_val = do_gets ((void*) (intptr_t) port); | 343 | ret_val = do_gets ((void *) (intptr_t) port); |
344 | if (! ret_val) | 344 | if (! ret_val) |
345 | stop (test_desc); | 345 | stop (test_desc); |
346 | MHD_stop_daemon (d); | 346 | MHD_stop_daemon (d); |
@@ -389,7 +389,7 @@ testMultithreadedPoolGet (int port, int poll_flag) | |||
389 | port = (int) dinfo->port; | 389 | port = (int) dinfo->port; |
390 | } | 390 | } |
391 | start_timer (); | 391 | start_timer (); |
392 | ret_val = do_gets ((void*) (intptr_t) port); | 392 | ret_val = do_gets ((void *) (intptr_t) port); |
393 | if (! ret_val) | 393 | if (! ret_val) |
394 | stop (test_desc); | 394 | stop (test_desc); |
395 | MHD_stop_daemon (d); | 395 | MHD_stop_daemon (d); |
@@ -437,7 +437,7 @@ testExternalGet (int port) | |||
437 | port = (int) dinfo->port; | 437 | port = (int) dinfo->port; |
438 | } | 438 | } |
439 | if (0 != pthread_create (&pid, NULL, | 439 | if (0 != pthread_create (&pid, NULL, |
440 | &do_gets, (void*) (intptr_t) port)) | 440 | &do_gets, (void *) (intptr_t) port)) |
441 | { | 441 | { |
442 | MHD_stop_daemon (d); | 442 | MHD_stop_daemon (d); |
443 | return 512; | 443 | return 512; |
@@ -489,7 +489,7 @@ testExternalGet (int port) | |||
489 | 489 | ||
490 | stop ("external select"); | 490 | stop ("external select"); |
491 | MHD_stop_daemon (d); | 491 | MHD_stop_daemon (d); |
492 | if ((0 != pthread_join (pid, (void**) &ret_val)) || | 492 | if ((0 != pthread_join (pid, (void **) &ret_val)) || |
493 | (NULL != ret_val) ) | 493 | (NULL != ret_val) ) |
494 | { | 494 | { |
495 | fprintf (stderr, | 495 | fprintf (stderr, |