summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
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
parent2000-11-30 Joel Sherrill <joel@OARcorp.com> (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')
-rw-r--r--cpukit/posix/ChangeLog4
-rw-r--r--cpukit/posix/inline/rtems/posix/mqueue.inl3
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog
index 90eb3a390b..5053b6bf37 100644
--- a/cpukit/posix/ChangeLog
+++ b/cpukit/posix/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-30 Joel Sherrill <joel@OARcorp.com>
+
+ * inline/rtems/posix/mqueue.inl: Removed explicit dependency on abs().
+
2000-11-27 Joel Sherrill <joel@OARcorp.com>
* src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.
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