Changeset f5c5a1db in rtems


Ignore:
Timestamp:
Dec 6, 2006, 9:46:46 AM (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c73f11d
Parents:
6876ce7
Message:

Add const qualifiers, use size_t where appropriate.

Location:
cpukit/score
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/object.h

    r6876ce7 rf5c5a1db  
    536536 */
    537537void _Objects_Clear_name(
    538   void       *name,
    539   uint16_t    length
     538  void         *name,
     539  const size_t  length
    540540);
    541541
     
    548548 */
    549549void _Objects_Copy_name_string(
    550   void       *source,
    551   void       *destination,
    552   uint16_t    length
     550  const void   *source,
     551  void         *destination,
     552  const size_t  length
    553553);
    554554
     
    561561 */
    562562void _Objects_Copy_name_raw(
    563   void       *source,
    564   void       *destination,
    565   uint16_t    length
     563  const void   *source,
     564  void         *destination,
     565  const size_t  length
    566566);
    567567
  • cpukit/score/src/objectclearname.c

    r6876ce7 rf5c5a1db  
    3838
    3939void _Objects_Clear_name(
    40   void       *name,
    41   uint16_t    length
     40  void         *name,
     41  const size_t  length
    4242)
    4343{
    44   uint32_t    index;
    45   uint32_t    maximum = length / OBJECTS_NAME_ALIGNMENT;
     44  size_t      index;
     45  size_t      maximum = length / OBJECTS_NAME_ALIGNMENT;
    4646  uint32_t   *name_ptr = (uint32_t   *) name;
    4747
  • cpukit/score/src/objectcopynameraw.c

    r6876ce7 rf5c5a1db  
    3737
    3838void _Objects_Copy_name_raw(
    39   void       *source,
    40   void       *destination,
    41   uint16_t    length
     39  const void   *source,
     40  void         *destination,
     41  const size_t  length
    4242)
    4343{
    4444  uint32_t   *source_p = (uint32_t   *) source;
    4545  uint32_t   *destination_p = (uint32_t   *) destination;
    46   uint32_t    tmp_length = length / OBJECTS_NAME_ALIGNMENT;
     46  size_t    tmp_length = length / OBJECTS_NAME_ALIGNMENT;
    4747
    4848  while ( tmp_length-- )
  • cpukit/score/src/objectcopynamestring.c

    r6876ce7 rf5c5a1db  
    3737
    3838void _Objects_Copy_name_string(
    39   void       *source,
    40   void       *destination,
    41   uint16_t   length
     39  const void   *source,
     40  void         *destination,
     41  const size_t  length
    4242)
    4343{
Note: See TracChangeset for help on using the changeset viewer.