diff options
-rw-r--r-- | cpukit/score/include/rtems/score/object.h | 16 | ||||
-rw-r--r-- | cpukit/score/src/objectclearname.c | 8 | ||||
-rw-r--r-- | cpukit/score/src/objectcopynameraw.c | 8 | ||||
-rw-r--r-- | cpukit/score/src/objectcopynamestring.c | 6 |
4 files changed, 19 insertions, 19 deletions
diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h index 4f93e47ecc..3c63ce92b6 100644 --- a/cpukit/score/include/rtems/score/object.h +++ b/cpukit/score/include/rtems/score/object.h @@ -535,8 +535,8 @@ void _Objects_Free( * @param[in] length is the length of the object name field. */ void _Objects_Clear_name( - void *name, - uint16_t length + void *name, + const size_t length ); /** @@ -547,9 +547,9 @@ void _Objects_Clear_name( * @param[in] length is the number of bytes to copy. */ void _Objects_Copy_name_string( - void *source, - void *destination, - uint16_t length + const void *source, + void *destination, + const size_t length ); /** @@ -560,9 +560,9 @@ void _Objects_Copy_name_string( * @param[in] length is the number of bytes to copy. */ void _Objects_Copy_name_raw( - void *source, - void *destination, - uint16_t length + const void *source, + void *destination, + const size_t length ); /** diff --git a/cpukit/score/src/objectclearname.c b/cpukit/score/src/objectclearname.c index 1c90def6fa..f0845810ab 100644 --- a/cpukit/score/src/objectclearname.c +++ b/cpukit/score/src/objectclearname.c @@ -37,12 +37,12 @@ */ void _Objects_Clear_name( - void *name, - uint16_t length + void *name, + const size_t length ) { - uint32_t index; - uint32_t maximum = length / OBJECTS_NAME_ALIGNMENT; + size_t index; + size_t maximum = length / OBJECTS_NAME_ALIGNMENT; uint32_t *name_ptr = (uint32_t *) name; for ( index=0 ; index < maximum ; index++ ) diff --git a/cpukit/score/src/objectcopynameraw.c b/cpukit/score/src/objectcopynameraw.c index 2a9cd069d6..5534323a4c 100644 --- a/cpukit/score/src/objectcopynameraw.c +++ b/cpukit/score/src/objectcopynameraw.c @@ -36,14 +36,14 @@ */ void _Objects_Copy_name_raw( - void *source, - void *destination, - uint16_t length + const void *source, + void *destination, + const size_t length ) { uint32_t *source_p = (uint32_t *) source; uint32_t *destination_p = (uint32_t *) destination; - uint32_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; + size_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; while ( tmp_length-- ) *destination_p++ = *source_p++; diff --git a/cpukit/score/src/objectcopynamestring.c b/cpukit/score/src/objectcopynamestring.c index 3ae0213b6d..764e9aa172 100644 --- a/cpukit/score/src/objectcopynamestring.c +++ b/cpukit/score/src/objectcopynamestring.c @@ -36,9 +36,9 @@ */ void _Objects_Copy_name_string( - void *source, - void *destination, - uint16_t length + const void *source, + void *destination, + const size_t length ) { uint8_t *source_p = (uint8_t *) source; |