1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

curl_threads: make it 'struct Curl_actual_call'

Internal names should not be prefixed "curl_"

Closes #5906
This commit is contained in:
Daniel Stenberg 2020-09-02 12:12:40 +02:00
parent add7022666
commit 221a584df9
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -41,14 +41,14 @@
#if defined(USE_THREADS_POSIX) #if defined(USE_THREADS_POSIX)
struct curl_actual_call { struct Curl_actual_call {
unsigned int (*func)(void *); unsigned int (*func)(void *);
void *arg; void *arg;
}; };
static void *curl_thread_create_thunk(void *arg) static void *curl_thread_create_thunk(void *arg)
{ {
struct curl_actual_call *ac = arg; struct Curl_actual_call *ac = arg;
unsigned int (*func)(void *) = ac->func; unsigned int (*func)(void *) = ac->func;
void *real_arg = ac->arg; void *real_arg = ac->arg;
@ -62,7 +62,7 @@ static void *curl_thread_create_thunk(void *arg)
curl_thread_t Curl_thread_create(unsigned int (*func) (void *), void *arg) curl_thread_t Curl_thread_create(unsigned int (*func) (void *), void *arg)
{ {
curl_thread_t t = malloc(sizeof(pthread_t)); curl_thread_t t = malloc(sizeof(pthread_t));
struct curl_actual_call *ac = malloc(sizeof(struct curl_actual_call)); struct Curl_actual_call *ac = malloc(sizeof(struct Curl_actual_call));
if(!(ac && t)) if(!(ac && t))
goto err; goto err;