You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2003/09/13 05:45:50 UTC
cvs commit: httpd-2.0/server/mpm/worker fdqueue.c
brianp 2003/09/12 20:45:50
Modified: server/mpm/worker fdqueue.c
Log:
Add casts to apr_atomic_casptr arguments to avoid compiler warnings
Revision Changes Path
1.28 +3 -3 httpd-2.0/server/mpm/worker/fdqueue.c
Index: fdqueue.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/mpm/worker/fdqueue.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- fdqueue.c 10 Jul 2003 20:29:25 -0000 1.27
+++ fdqueue.c 13 Sep 2003 03:45:50 -0000 1.28
@@ -85,7 +85,7 @@
if (first_pool == NULL) {
break;
}
- if (apr_atomic_casptr(&(qi->recycled_pools), first_pool->next,
+ if (apr_atomic_casptr((volatile void**)&(qi->recycled_pools), first_pool->next,
first_pool) == first_pool) {
apr_pool_destroy(first_pool->pool);
}
@@ -138,7 +138,7 @@
new_recycle->pool = pool_to_recycle;
for (;;) {
new_recycle->next = queue_info->recycled_pools;
- if (apr_atomic_casptr(&(queue_info->recycled_pools),
+ if (apr_atomic_casptr((volatile void**)&(queue_info->recycled_pools),
new_recycle, new_recycle->next) ==
new_recycle->next) {
break;
@@ -228,7 +228,7 @@
if (first_pool == NULL) {
break;
}
- if (apr_atomic_casptr(&(queue_info->recycled_pools), first_pool->next,
+ if (apr_atomic_casptr((volatile void**)&(queue_info->recycled_pools), first_pool->next,
first_pool) == first_pool) {
*recycled_pool = first_pool->pool;
break;