mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user