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]

[PATCH] Minor problem in initializing __rtld_mrlock_t


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) \


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