This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Minor problem in initializing __rtld_mrlock_t
- From: Sripathi Kodi <sripathik at in dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 7 Dec 2006 15:53:52 +0530
- Subject: [PATCH] Minor problem in initializing __rtld_mrlock_t
- Reply-to: sripathik at in dot ibm dot com
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) \