From ea6eb43135fce1bc7f9029d26a683fb00b40109c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 23 Nov 2009 14:58:18 +0000 Subject: [PATCH] 2009-11-23 Joel Sherrill 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. --- testsuites/psxtests/ChangeLog | 6 ++++++ testsuites/psxtests/psx14/init.c | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 51b13f161a..edb0ddab08 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,9 @@ +2009-11-23 Joel Sherrill + + 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 PR 1466/tests diff --git a/testsuites/psxtests/psx14/init.c b/testsuites/psxtests/psx14/init.c index 4504e67dfc..d740cb1255 100644 --- a/testsuites/psxtests/psx14/init.c +++ b/testsuites/psxtests/psx14/init.c @@ -14,10 +14,6 @@ #include #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) );