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

* rtems/src/rtemsobjectapimaximumclass.c,
	score/include/rtems/score/object.h,
	score/src/objectapimaximumclass.c, score/src/objectgetinfo.c: Change
	return type of API maximum class methods to unsigned.
This commit is contained in:
Joel Sherrill
2009-07-07 23:33:17 +00:00
parent bc93f30f39
commit d6c8b56b62
5 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
2009-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/rtemsobjectapimaximumclass.c,
score/include/rtems/score/object.h,
score/src/objectapimaximumclass.c, score/src/objectgetinfo.c: Change
return type of API maximum class methods to unsigned.
2009-07-07 Chris Johns <chrisj@rtems.org>
* score/src/objectshrinkinformation.c: Rework loop to simplify and

View File

@@ -19,7 +19,7 @@
#include <rtems/score/object.h>
#include <rtems/rtems/types.h>
int rtems_object_api_maximum_class(
unsigned int rtems_object_api_maximum_class(
uint32_t api
)
{

View File

@@ -492,9 +492,9 @@ void _Objects_Initialize_information (
*
* @param[in] api is the API of interest
*
* @return A positive integer on success and -1 otherwise.
* @return A positive integer on success and 0 otherwise.
*/
int _Objects_API_maximum_class(
unsigned int _Objects_API_maximum_class(
uint32_t api
);

View File

@@ -16,7 +16,7 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
int _Objects_API_maximum_class(
unsigned int _Objects_API_maximum_class(
uint32_t api
)
{
@@ -33,6 +33,6 @@ int _Objects_API_maximum_class(
default:
break;
}
return -1;
return 0;
}

View File

@@ -33,7 +33,7 @@ Objects_Information *_Objects_Get_information(
return NULL;
the_class_api_maximum = _Objects_API_maximum_class( the_api );
if ( the_class_api_maximum < 0 ||
if ( the_class_api_maximum == 0 ||
the_class > (uint32_t) the_class_api_maximum )
return NULL;