summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-06-20 00:06:06 +0000
committerIvan Zhakov <ivan@apache.org>2022-06-20 00:06:06 +0000
commit79fd957e6929cebf36145455a5eb69a9f498d325 (patch)
tree534019f8c1b9c533d154f0ac849ed192e86340d9 /threadproc
parent5379189cd7ed1c2aa0b615da0647d6f73ac4ec95 (diff)
downloadapr-79fd957e6929cebf36145455a5eb69a9f498d325.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')
-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);