diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-30 14:32:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-30 14:32:56 +0000 |
commit | 40b0597434ffca05511e24235e9b3af4e9447516 (patch) | |
tree | a312924921f859c031766b572fe1a93507cf44f3 /cpukit/posix/inline/rtems/posix/mqueue.inl | |
parent | 2000-11-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-40b0597434ffca05511e24235e9b3af4e9447516.tar.bz2 |
2000-11-30 Joel Sherrill <joel@OARcorp.com>
* inline/rtems/posix/mqueue.inl: Removed explicit dependency on abs().
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/inline/rtems/posix/mqueue.inl | 3 |
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 |