Skip to content

Commit

Permalink
Merge pull request #733 from zanzaben/Fix732_rtems_5_conflicting_types
Browse files Browse the repository at this point in the history
Fix #732, change uint32 to size_t
  • Loading branch information
astrogeco authored Jan 13, 2021
2 parents e9ff3a6 + efd7f35 commit b1f1b27
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bsp/pc-rtems/src/bsp_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
OS_BSP_ConsoleOutput_Impl
See full description in header
------------------------------------------------------------------*/
void OS_BSP_ConsoleOutput_Impl(const char *Str, uint32 DataLen)
void OS_BSP_ConsoleOutput_Impl(const char *Str, size_t DataLen)
{
/* writes the raw data directly to STDOUT_FILENO (unbuffered) */
write(STDOUT_FILENO, Str, DataLen);
Expand Down
2 changes: 1 addition & 1 deletion src/os/rtems/src/os-impl-network.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int32 OS_NetworkGetID_Impl(int32 *IdBuf)
* See prototype for argument/return detail
*
*-----------------------------------------------------------------*/
int32 OS_NetworkGetHostName_Impl(char *host_name, uint32 name_len)
int32 OS_NetworkGetHostName_Impl(char *host_name, size_t name_len)
{
int32 return_code;

Expand Down
4 changes: 2 additions & 2 deletions src/os/rtems/src/os-impl-queues.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int32 OS_QueueDelete_Impl(const OS_object_token_t *token)
* See prototype for argument/return detail
*
*-----------------------------------------------------------------*/
int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, uint32 size, uint32 *size_copied, int32 timeout)
int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, size_t size, size_t *size_copied, int32 timeout)
{
int32 return_code;
rtems_status_code status;
Expand Down Expand Up @@ -253,7 +253,7 @@ int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, uint32 size,
* See prototype for argument/return detail
*
*-----------------------------------------------------------------*/
int32 OS_QueuePut_Impl(const OS_object_token_t *token, const void *data, uint32 size, uint32 flags)
int32 OS_QueuePut_Impl(const OS_object_token_t *token, const void *data, size_t size, uint32 flags)
{
rtems_status_code status;
rtems_id rtems_queue_id;
Expand Down
2 changes: 1 addition & 1 deletion src/os/rtems/src/os-impl-tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ int32 OS_TaskGetInfo_Impl(const OS_object_token_t *token, OS_task_prop_t *task_p
* See prototype for argument/return detail
*
*-----------------------------------------------------------------*/
int32 OS_TaskValidateSystemData_Impl(const void *sysdata, uint32 sysdata_size)
int32 OS_TaskValidateSystemData_Impl(const void *sysdata, size_t sysdata_size)
{
if (sysdata == NULL || sysdata_size != sizeof(rtems_id))
{
Expand Down

0 comments on commit b1f1b27

Please sign in to comment.