You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2007/04/23 20:01:04 UTC

svn commit: r531544 - /apr/apr-util/trunk/misc/apr_thread_pool.c

Author: jorton
Date: Mon Apr 23 11:01:03 2007
New Revision: 531544

URL: http://svn.apache.org/viewvc?view=rev&rev=531544
Log:
* misc/apr_thread_pool.c (apr_thread_pool_task_owner_get): Fix gcc
strict-aliasing warning.

Modified:
    apr/apr-util/trunk/misc/apr_thread_pool.c

Modified: apr/apr-util/trunk/misc/apr_thread_pool.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_thread_pool.c?view=diff&rev=531544&r1=531543&r2=531544
==============================================================================
--- apr/apr-util/trunk/misc/apr_thread_pool.c (original)
+++ apr/apr-util/trunk/misc/apr_thread_pool.c Mon Apr 23 11:01:03 2007
@@ -817,13 +817,15 @@
                                                          void **owner)
 {
     apr_status_t rv;
-    apr_thread_pool_task_t * task;
+    apr_thread_pool_task_t *task;
+    void *data;
     
-    rv = apr_thread_data_get((void**) &task, "apr_thread_pool_task", thd);
+    rv = apr_thread_data_get(&data, "apr_thread_pool_task", thd);
     if (rv != APR_SUCCESS) {
         return rv;
     }
 
+    task = data;
     if (!task) {
         *owner = NULL;
         return APR_BADARG;