This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[comitted, PATCH] RTEMS: Fix _PTHREAD_MUTEX_INITIALIZER
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Fri, 13 Oct 2017 08:09:07 +0200
- Subject: [comitted, PATCH] RTEMS: Fix _PTHREAD_MUTEX_INITIALIZER
- Authentication-results: sourceware.org; auth=none
Add missing braces around initializer.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/sys/rtems/include/sys/_pthreadtypes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h b/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h
index b091ebbaf..34e22221f 100644
--- a/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h
+++ b/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h
@@ -159,7 +159,7 @@ typedef struct {
} pthread_mutex_t;
#define _PTHREAD_MUTEX_INITIALIZER \
- { 0, _MUTEX_RECURSIVE_INITIALIZER, { { 0, 0, 0, 0 }, 0 }, 0 }
+ { 0, _MUTEX_RECURSIVE_INITIALIZER, { { { 0, 0, 0, 0 } }, 0 }, 0 }
typedef struct {
int is_initialized;
--
2.12.3