This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] NPTL: Remove duplicate definition of PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
- From: Martin Galvan <martin dot galvan at tallertechnologies dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 28 Mar 2015 01:41:35 -0300
- Subject: [PATCH] NPTL: Remove duplicate definition of PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
- Authentication-results: sourceware.org; auth=none
The PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP macro was defined twice with the same values in pthread.h; this removes the second definition.
I don't have a copyright assignment yet, but since this is a minor change I don't think it's necessary.
ChangeLog:
2015-03-28 Martin Galvan <martin.galvan@tallertechnologies.com>
* sysdeps/nptl/pthread.h: Removed duplicate definition of
PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
---
sysdeps/nptl/pthread.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h
index 70ff250..89d0882 100644
--- a/sysdeps/nptl/pthread.h
+++ b/sysdeps/nptl/pthread.h
@@ -92,8 +92,6 @@ enum
{ { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __PTHREAD_SPINS, { 0, 0 } } }
# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
{ { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }
-# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
- { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }
# endif
#else
--
2.3.4