aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth_concurrent.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-09-08 12:03:33 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-09-08 12:03:33 +0300
commita9bc3198c8571bd0ceb074ceb8c94b283a6c6696 (patch)
treedaa7d2a64a52c16d0d389ca0d752ad185fb3e86f /src/testcurl/test_digestauth_concurrent.c
parente55b0418ecae1aea289e8197ef0850690c5fa3f1 (diff)
downloadlibmicrohttpd-a9bc3198c8571bd0ceb074ceb8c94b283a6c6696.tar.gz
libmicrohttpd-a9bc3198c8571bd0ceb074ceb8c94b283a6c6696.zip
Renamed 'pid' -> 'tid' when used for threads
Diffstat (limited to 'src/testcurl/test_digestauth_concurrent.c')
-rw-r--r--src/testcurl/test_digestauth_concurrent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c
index 664b5cb1..97ca8db7 100644
--- a/src/testcurl/test_digestauth_concurrent.c
+++ b/src/testcurl/test_digestauth_concurrent.c
@@ -450,7 +450,7 @@ struct curlWokerInfo
450{ 450{
451 int workerNumber; 451 int workerNumber;
452 struct CBC cbc; 452 struct CBC cbc;
453 pthread_t pid; 453 pthread_t tid;
454 /** 454 /**
455 * The libcurl handle to run in thread 455 * The libcurl handle to run in thread
456 */ 456 */
@@ -628,7 +628,7 @@ testDigestAuth (void)
628 for (i = 0; i < sizeof(workers) / sizeof(workers[0]); i++) 628 for (i = 0; i < sizeof(workers) / sizeof(workers[0]); i++)
629 { 629 {
630 struct curlWokerInfo *const w = workers + i; 630 struct curlWokerInfo *const w = workers + i;
631 if (0 != pthread_create (&w->pid, NULL, &worker_func, w)) 631 if (0 != pthread_create (&w->tid, NULL, &worker_func, w))
632 externalErrorExitDesc ("pthread_create() failed"); 632 externalErrorExitDesc ("pthread_create() failed");
633 } 633 }
634 634
@@ -637,7 +637,7 @@ testDigestAuth (void)
637 for (i = 0; i < sizeof(workers) / sizeof(workers[0]); i++) 637 for (i = 0; i < sizeof(workers) / sizeof(workers[0]); i++)
638 { 638 {
639 struct curlWokerInfo *const w = workers + i; 639 struct curlWokerInfo *const w = workers + i;
640 if (0 != pthread_join (w->pid, NULL)) 640 if (0 != pthread_join (w->tid, NULL))
641 externalErrorExitDesc ("pthread_join() failed"); 641 externalErrorExitDesc ("pthread_join() failed");
642 curl_easy_cleanup (w->c); 642 curl_easy_cleanup (w->c);
643 free (w->libcurl_errbuf); 643 free (w->libcurl_errbuf);