tweak macro name

This commit is contained in:
Viktor Szakats 2025-07-11 13:30:37 +02:00
parent 81788e8b4f
commit c14b7b970c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 8 additions and 8 deletions

View file

@ -202,7 +202,7 @@ err_exit:
* For builds without ARES, but with USE_IPV6, create a resolver thread
* and wait on it.
*/
static CURL_THREAD_RESULT_T CURL_STDCALL getaddrinfo_thread(void *arg)
static CURL_THREAD_RETURN_T CURL_STDCALL getaddrinfo_thread(void *arg)
{
struct async_thrdd_addr_ctx *addr_ctx = arg;
char service[12];
@ -256,7 +256,7 @@ static CURL_THREAD_RESULT_T CURL_STDCALL getaddrinfo_thread(void *arg)
/*
* gethostbyname_thread() resolves a name and then exits.
*/
static CURL_THREAD_RESULT_T CURL_STDCALL gethostbyname_thread(void *arg)
static CURL_THREAD_RETURN_T CURL_STDCALL gethostbyname_thread(void *arg)
{
struct async_thrdd_addr_ctx *addr_ctx = arg;
bool all_gone;

View file

@ -59,7 +59,7 @@ static void *curl_thread_create_thunk(void *arg)
return 0;
}
curl_thread_t Curl_thread_create(CURL_THREAD_RESULT_T
curl_thread_t Curl_thread_create(CURL_THREAD_RETURN_T
(CURL_STDCALL *func) (void *), void *arg)
{
curl_thread_t t = malloc(sizeof(pthread_t));
@ -102,7 +102,7 @@ int Curl_thread_join(curl_thread_t *hnd)
#elif defined(USE_THREADS_WIN32)
curl_thread_t Curl_thread_create(CURL_THREAD_RESULT_T
curl_thread_t Curl_thread_create(CURL_THREAD_RETURN_T
(CURL_STDCALL *func) (void *), void *arg)
{
#if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)

View file

@ -53,14 +53,14 @@
#endif
#if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)
#define CURL_THREAD_RESULT_T DWORD
#define CURL_THREAD_RETURN_T DWORD
#else
#define CURL_THREAD_RESULT_T unsigned int
#define CURL_THREAD_RETURN_T unsigned int
#endif
#if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
curl_thread_t Curl_thread_create(CURL_THREAD_RESULT_T
curl_thread_t Curl_thread_create(CURL_THREAD_RETURN_T
(CURL_STDCALL *func) (void *), void *arg);
void Curl_thread_destroy(curl_thread_t *hnd);

View file

@ -68,7 +68,7 @@ static size_t write_memory_callback(char *contents, size_t size,
return realsize;
}
static CURL_THREAD_RESULT_T CURL_STDCALL test_thread(void *ptr)
static CURL_THREAD_RETURN_T CURL_STDCALL test_thread(void *ptr)
{
struct Ctx *ctx = (struct Ctx *)ptr;
CURLcode res = CURLE_OK;