[PATCH] Minor problem in initializing __rtld_mrlock_t

Sripathi Kodi sripathik@in.ibm.com
Thu Dec 7 10:47:00 GMT 2006


Hi,

When I changed _RTLD_MRLOCK_INITIALIZER from 0 to 1 in 
nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h, I noticed that there is a small
error that results in compilation error. The following patch fixes the problem.

Thanks and regards,
Sripathi.


Signed-off-by: Sripathi Kodi <sripathik@in.ibm.com>


diff -uprN libc_org/nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h libc/nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h
--- libc_org/nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h	2006-12-07 04:08:31.000000000 -0600
+++ libc/nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h	2006-12-07 04:10:43.000000000 -0600
@@ -43,7 +43,7 @@ typedef int __rtld_mrlock_t;
 
 #define _RTLD_MRLOCK_INITIALIZER 0
 #define __rtld_mrlock_initialize(NAME) \
-  (void) ((NAME) = 0
+  (NAME) = 0
 
 
 #define __rtld_mrlock_lock(lock) \



More information about the Libc-alpha mailing list