summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/posix/muteximpl.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-08-19 16:50:24 +1000
committerChris Johns <chrisj@rtems.org>2022-08-22 08:30:00 +1000
commita329579ed5ef8e7d75e41b43e62b040007835b75 (patch)
treea83edd08d08440f87dc8e983010044c4c8eaca2b /cpukit/include/rtems/posix/muteximpl.h
parentcpukit/include: Fixes for C++ (diff)
downloadrtems-a329579ed5ef8e7d75e41b43e62b040007835b75.tar.bz2
cpukit/include: Fix including in C++
UPdates #4706
Diffstat (limited to 'cpukit/include/rtems/posix/muteximpl.h')
-rw-r--r--cpukit/include/rtems/posix/muteximpl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/include/rtems/posix/muteximpl.h b/cpukit/include/rtems/posix/muteximpl.h
index e2b4e187d1..ff1b7b1643 100644
--- a/cpukit/include/rtems/posix/muteximpl.h
+++ b/cpukit/include/rtems/posix/muteximpl.h
@@ -4,8 +4,8 @@
* @file
*
* @brief Private Inlined Routines for POSIX Mutex's.
- *
- * This include file contains the static inline implementation of the private
+ *
+ * This include file contains the static inline implementation of the private
* inlined routines for POSIX mutex's.
*/
@@ -123,7 +123,7 @@ RTEMS_INLINE_ROUTINE POSIX_Mutex_Protocol _POSIX_Mutex_Get_protocol(
unsigned long flags
)
{
- return flags & POSIX_MUTEX_PROTOCOL_MASK;
+ return (POSIX_Mutex_Protocol) (flags & POSIX_MUTEX_PROTOCOL_MASK);
}
RTEMS_INLINE_ROUTINE bool _POSIX_Mutex_Is_recursive(
@@ -465,4 +465,3 @@ bool _POSIX_Mutex_Auto_initialization( POSIX_Mutex_Control *the_mutex );
#endif
/* end of include file */
-