summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-09 18:42:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-11-09 18:42:17 +0000
commit0f7afe507a6b78db176c9fa090b90d45ea9a168d (patch)
treee646fe8082189e8e225bc0d73cfbe6f4d8fccd8b /cpukit/score/include
parent2011-11-09 Werner Almesberger <werner@almesberger.net> (diff)
downloadrtems-0f7afe507a6b78db176c9fa090b90d45ea9a168d.tar.bz2
2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1957/cpukit * score/include/rtems/score/coremutex.h, score/inline/rtems/score/threadmp.inl: Add parentheses to protect macro arguments.
Diffstat (limited to 'cpukit/score/include')
-rw-r--r--cpukit/score/include/rtems/score/coremutex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h
index 30bc33cf65..481c95081b 100644
--- a/cpukit/score/include/rtems/score/coremutex.h
+++ b/cpukit/score/include/rtems/score/coremutex.h
@@ -395,8 +395,8 @@ void _CORE_mutex_Seize_interrupt_blocking(
INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \
); \
} \
- if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &_level ) ) { \
- if ( !_wait ) { \
+ if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &(_level) ) ) { \
+ if ( !(_wait) ) { \
_ISR_Enable( _level ); \
_Thread_Executing->Wait.return_code = \
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT; \