Changeset d6c8b56b in rtems


Ignore:
Timestamp:
Jul 7, 2009, 11:33:17 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
67d6947
Parents:
bc93f30f
Message:

2009-07-07 Joel Sherrill <joel.sherrill@…>

  • 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.
Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rbc93f30f rd6c8b56b  
     12009-07-07      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * rtems/src/rtemsobjectapimaximumclass.c,
     4        score/include/rtems/score/object.h,
     5        score/src/objectapimaximumclass.c, score/src/objectgetinfo.c: Change
     6        return type of API maximum class methods to unsigned.
     7
    182009-07-07      Chris Johns <chrisj@rtems.org>
    29
  • cpukit/rtems/src/rtemsobjectapimaximumclass.c

    rbc93f30f rd6c8b56b  
    2020#include <rtems/rtems/types.h>
    2121
    22 int rtems_object_api_maximum_class(
     22unsigned int rtems_object_api_maximum_class(
    2323  uint32_t api
    2424)
  • cpukit/score/include/rtems/score/object.h

    rbc93f30f rd6c8b56b  
    493493 *  @param[in] api is the API of interest
    494494 *
    495  *  @return A positive integer on success and -1 otherwise.
    496  */
    497 int _Objects_API_maximum_class(
     495 *  @return A positive integer on success and 0 otherwise.
     496 */
     497unsigned int _Objects_API_maximum_class(
    498498  uint32_t api
    499499);
  • cpukit/score/src/objectapimaximumclass.c

    rbc93f30f rd6c8b56b  
    1717#include <rtems/score/object.h>
    1818
    19 int _Objects_API_maximum_class(
     19unsigned int _Objects_API_maximum_class(
    2020  uint32_t api
    2121)
     
    3434      break;
    3535  }
    36   return -1;
     36  return 0;
    3737}
    3838
  • cpukit/score/src/objectgetinfo.c

    rbc93f30f rd6c8b56b  
    3434
    3535  the_class_api_maximum = _Objects_API_maximum_class( the_api );
    36   if ( the_class_api_maximum < 0 ||
     36  if ( the_class_api_maximum == 0 ||
    3737       the_class > (uint32_t) the_class_api_maximum )
    3838    return NULL;
Note: See TracChangeset for help on using the changeset viewer.