This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

nptl/sysdeps/pthread/bits/libc-lock.h lock typo ?


Shouldn't it be in such a way instead ?

Dmitry


Index: nptl/sysdeps/pthread/bits/libc-lock.h
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/pthread/bits/libc-lock.h,v
retrieving revision 1.23
diff -u -r1.23 libc-lock.h
--- nptl/sysdeps/pthread/bits/libc-lock.h	10 Oct 2007 15:59:42 -0000	1.23
+++ nptl/sysdeps/pthread/bits/libc-lock.h	30 Nov 2007 15:07:26 -0000
@@ -301,7 +301,7 @@
   })
 #else
 # define __libc_lock_trylock_recursive(NAME) \
-  __libc_maybe_call (__pthread_mutex_trylock, (&(NAME)), 0)
+  __libc_maybe_call (__pthread_mutex_trylock, (&(NAME).mutex), 0)
 #endif
 
 #define __rtld_lock_trylock_recursive(NAME) \
@@ -331,7 +331,7 @@
   } while (0)
 #else
 # define __libc_lock_unlock_recursive(NAME) \
-  __libc_maybe_call (__pthread_mutex_unlock, (&(NAME)), 0)
+  __libc_maybe_call (__pthread_mutex_unlock, (&(NAME).mutex), 0)
 #endif
 
 #if defined _LIBC && defined SHARED

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]