summaryrefslogtreecommitdiff
path: root/threadproc/win32/thread.c
diff options
context:
space:
mode:
authorivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2022-06-20 00:06:06 +0000
committerivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2022-06-20 00:06:06 +0000
commit3f8cbaf73139e3a256a6226f7b0ee069f09aadfc (patch)
tree534019f8c1b9c533d154f0ac849ed192e86340d9 /threadproc/win32/thread.c
parent02af70e7fe2f3efc8314289029ff3a3b557858e9 (diff)
downloadlibapr-3f8cbaf73139e3a256a6226f7b0ee069f09aadfc.tar.gz
* threadproc/win32/thread.c
(apr_thread_create): Do not cast function pointer... (dummy_worker): ... cast return value. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902077 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32/thread.c')
-rw-r--r--threadproc/win32/thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c
index be023e2e0..34cf4851b 100644
--- a/threadproc/win32/thread.c
+++ b/threadproc/win32/thread.c
@@ -76,7 +76,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_guardsize_set(apr_threadattr_t *attr,
static APR_THREAD_LOCAL apr_thread_t *current_thread = NULL;
#endif
-static void * APR_THREAD_FUNC dummy_worker(void *opaque)
+static unsigned int APR_THREAD_FUNC dummy_worker(void *opaque)
{
apr_thread_t *thd = (apr_thread_t *)opaque;
void *ret;
@@ -92,7 +92,7 @@ static void * APR_THREAD_FUNC dummy_worker(void *opaque)
apr_pool_destroy(thd->pool);
}
- return ret;
+ return (unsigned int) ret;
}
static apr_status_t alloc_thread(apr_thread_t **new,
@@ -156,7 +156,7 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new,
*/
if ((handle = (HANDLE)_beginthreadex(NULL,
(DWORD) (attr ? attr->stacksize : 0),
- (unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker,
+ dummy_worker,
(*new), 0, &temp)) == 0) {
stat = APR_FROM_OS_ERROR(_doserrno);
apr_pool_destroy((*new)->pool);