apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r531544 - /apr/apr-util/trunk/misc/apr_thread_pool.c
Date Mon, 23 Apr 2007 18:01:04 GMT
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;



Mime
View raw message