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.
This commit is contained in:
Joel Sherrill
2011-03-09 16:19:37 +00:00
parent ce217f9699
commit b1e13f4034
2 changed files with 14 additions and 8 deletions

View File

@@ -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

View File

@@ -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 ) {