2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>

PR 1460/cpukit
	* psx14/init.c: Change return type on methods accessing portions of
	RTEMS Ids to int. This allows -1 to be return on error.
This commit is contained in:
Joel Sherrill
2009-11-23 14:58:18 +00:00
parent e25611d036
commit ea6eb43135
2 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1460/cpukit
* psx14/init.c: Change return type on methods accessing portions of
RTEMS Ids to int. This allows -1 to be return on error.
2009-11-11 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1466/tests

View File

@@ -14,10 +14,6 @@
#include <rtems.h>
#include "tmacros.h"
/* HACK: API visibility violation */
extern uint32_t rtems_object_api_minimum_class(uint32_t api);
extern unsigned int rtems_object_api_maximum_class(uint32_t api);
void *POSIX_Init(
void *argument
)
@@ -48,7 +44,7 @@ void *POSIX_Init(
printf( "rtems_object_get_name returned (%s) for init thread\n", ptr );
/* exercise the POSIX path through some routines */
printf( "rtems_object_api_minimum_class(OBJECTS_POSIX_API) returned %" PRId32 "\n",
printf( "rtems_object_api_minimum_class(OBJECTS_POSIX_API) returned %d\n",
rtems_object_api_minimum_class(OBJECTS_POSIX_API) );
printf( "rtems_object_api_maximum_class(OBJECTS_POSIX_API) returned %d\n",
rtems_object_api_maximum_class(OBJECTS_POSIX_API) );