summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/inline
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-30 14:32:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-30 14:32:56 +0000
commit40b0597434ffca05511e24235e9b3af4e9447516 (patch)
treea312924921f859c031766b572fe1a93507cf44f3 /cpukit/posix/inline
parentc1a24fbea67e4f531d44d43507029aee2b01641b (diff)
downloadrtems-40b0597434ffca05511e24235e9b3af4e9447516.tar.bz2
2000-11-30 Joel Sherrill <joel@OARcorp.com>
* inline/rtems/posix/mqueue.inl: Removed explicit dependency on abs().
Diffstat (limited to 'cpukit/posix/inline')
-rw-r--r--cpukit/posix/inline/rtems/posix/mqueue.inl3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/inline/rtems/posix/mqueue.inl b/cpukit/posix/inline/rtems/posix/mqueue.inl
index e6da6674b4..4feaed5b59 100644
--- a/cpukit/posix/inline/rtems/posix/mqueue.inl
+++ b/cpukit/posix/inline/rtems/posix/mqueue.inl
@@ -102,7 +102,8 @@ RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
CORE_message_queue_Submit_types priority
)
{
- return abs( priority );
+ /* absolute value without a library dependency */
+ return ((priority >= 0) ? priority : -priority);
}
#endif