apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r584522 - /apr/apr/trunk/atomic/unix/mutex.c
Date Sun, 14 Oct 2007 09:54:49 GMT
Author: rpluem
Date: Sun Oct 14 02:54:48 2007
New Revision: 584522

URL: http://svn.apache.org/viewvc?rev=584522&view=rev
Log:
* Dereference mem as it is a double pointer.

Modified:
    apr/apr/trunk/atomic/unix/mutex.c

Modified: apr/apr/trunk/atomic/unix/mutex.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/atomic/unix/mutex.c?rev=584522&r1=584521&r2=584522&view=diff
==============================================================================
--- apr/apr/trunk/atomic/unix/mutex.c (original)
+++ apr/apr/trunk/atomic/unix/mutex.c Sun Oct 14 02:54:48 2007
@@ -192,7 +192,7 @@
 APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with)
 {
     void *prev;
-    DECLARE_MUTEX_LOCKED(mutex, mem);
+    DECLARE_MUTEX_LOCKED(mutex, *mem);
 
     prev = *mem;
     *mem = with;



Mime
View raw message