diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-09-01 18:24:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-09-01 18:24:57 +0000 |
commit | a1bfb335c0cc274513e144da46e203bff29e000b (patch) | |
tree | e994694851e8f30b4dd7c93262124d0571605db7 /cpukit/posix/src/mqueuerecvsupp.c | |
parent | Remove. (diff) | |
download | rtems-a1bfb335c0cc274513e144da46e203bff29e000b.tar.bz2 |
2011-09-01 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1895/cpukit
* posix/src/mqueuerecvsupp.c, posix/src/pthreadjoin.c,
score/src/coretodmsecstoticks.c, score/src/coretodusectoticks.c,
score/src/timespectoticks.c: Ensure time conversions to ticks do not
ignore partial tick and return 1 less than desired.
Diffstat (limited to 'cpukit/posix/src/mqueuerecvsupp.c')
-rw-r--r-- | cpukit/posix/src/mqueuerecvsupp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/posix/src/mqueuerecvsupp.c b/cpukit/posix/src/mqueuerecvsupp.c index 9c3fb47371..717fef8c9d 100644 --- a/cpukit/posix/src/mqueuerecvsupp.c +++ b/cpukit/posix/src/mqueuerecvsupp.c @@ -11,7 +11,7 @@ * This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open * time. * - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -105,8 +105,11 @@ ssize_t _POSIX_Message_queue_Receive_support( ); _Thread_Enable_dispatch(); - *msg_prio = - _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); + if (msg_prio) { + *msg_prio = _POSIX_Message_queue_Priority_from_core( + _Thread_Executing->Wait.count + ); + } if ( !_Thread_Executing->Wait.return_code ) return length_out; |