diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-09 16:19:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-09 16:19:37 +0000 |
commit | b1e13f4034d7e7a1b84b764305e66eee5e3ded48 (patch) | |
tree | ceaa10310a69fef410302b247470df0b737389f6 | |
parent | 2011-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-b1e13f4034d7e7a1b84b764305e66eee5e3ded48.tar.bz2 |
2011-03-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadget.c: Remove conditional since this path can be
tested with and without POSIX enabled.
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/src/threadget.c | 17 |
2 files changed, 14 insertions, 8 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 471b2b82ef..b3af513aa0 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2011-03-09 Joel Sherrill <joel.sherrill@oarcorp.com> + + * score/src/threadget.c: Remove conditional since this path can be + tested with and without POSIX enabled. + 2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com> * score/src/objectinitializeinformation.c: Reverse sense of conditional diff --git a/cpukit/score/src/threadget.c b/cpukit/score/src/threadget.c index 9e98dfd75f..30574a3617 100644 --- a/cpukit/score/src/threadget.c +++ b/cpukit/score/src/threadget.c @@ -1,7 +1,7 @@ /* * Thread Handler - Object Id to Thread Pointer * - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -76,14 +76,15 @@ Thread_Control *_Thread_Get ( api_information = _Objects_Information_table[ the_api ]; /* - * There is no way for this to happen if POSIX is enabled. + * There is no way for this to happen if POSIX is enabled. But there + * is actually a test case in sp43 for this which trips it whether or + * not POSIX is enabled. So in the interest of safety, this is left + * on in all configurations. */ - #if !defined(RTEMS_POSIX_API) - if ( !api_information ) { - *location = OBJECTS_ERROR; - goto done; - } - #endif + if ( !api_information ) { + *location = OBJECTS_ERROR; + goto done; + } information = api_information[ the_class ]; if ( !information ) { |