[PATCH] Minor problem in initializing __rtld_mrlock_t

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Minor problem in initializing __rtld_mrlock_t

Sripathi Kodi
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 <[hidden email]>


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