From: Chris Darroch Date: Fri, 12 Dec 2008 20:31:09 +0000 (+0000) Subject: I'm not 100% sure about this, but it seems to silence the X-Git-Tag: 2.3.1~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9365f9d5ca1f890b430009e89fa63fc5a352bce;p=apache I'm not 100% sure about this, but it seems to silence the compiler warnings generated by r101236 (which was, in turn, intended to do the same). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@726113 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/worker/fdqueue.c b/server/mpm/worker/fdqueue.c index dfbe8c47cf..49e53032ce 100644 --- a/server/mpm/worker/fdqueue.c +++ b/server/mpm/worker/fdqueue.c @@ -43,7 +43,7 @@ static apr_status_t queue_info_cleanup(void *data_) if (first_pool == NULL) { break; } - if (apr_atomic_casptr((volatile void**)&(qi->recycled_pools), first_pool->next, + if (apr_atomic_casptr((void*)&(qi->recycled_pools), first_pool->next, first_pool) == first_pool) { apr_pool_destroy(first_pool->pool); } @@ -100,7 +100,7 @@ apr_status_t ap_queue_info_set_idle(fd_queue_info_t *queue_info, */ struct recycled_pool *next = queue_info->recycled_pools; new_recycle->next = next; - if (apr_atomic_casptr((volatile void**)&(queue_info->recycled_pools), + if (apr_atomic_casptr((void*)&(queue_info->recycled_pools), new_recycle, next) == next) { break; } @@ -209,7 +209,7 @@ apr_status_t ap_queue_info_wait_for_idler(fd_queue_info_t *queue_info, if (first_pool == NULL) { break; } - if (apr_atomic_casptr((volatile void**)&(queue_info->recycled_pools), first_pool->next, + if (apr_atomic_casptr((void*)&(queue_info->recycled_pools), first_pool->next, first_pool) == first_pool) { *recycled_pool = first_pool->pool; break;