Skip to content

Commit

Permalink
[NAV#450] Corrected formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Wheatley committed Sep 21, 2022
1 parent 76a6cc2 commit 19d29e8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/os/rtems/src/os-impl-queues.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ int32 OS_QueueDelete_Impl(const OS_object_token_t *token)
*-----------------------------------------------------------------*/
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;
rtems_interval ticks;
int tick_count;
rtems_option option_set;
int32 return_code;
rtems_status_code status;
rtems_interval ticks;
int tick_count;
rtems_option option_set;
/* Implementation read size */
size_t impl_size;
size_t impl_size;
rtems_id rtems_queue_id;
OS_impl_queue_internal_record_t *impl;

Expand Down Expand Up @@ -209,7 +209,8 @@ int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, size_t size,
*size_copied = 0;

/* Map the rtems error to the most appropriate OSAL return code */
if( (timeout == OS_PEND) && (status != RTEMS_TIMEOUT)){
if ((timeout == OS_PEND) && (status != RTEMS_TIMEOUT))
{
/* OS_PEND was supposed to pend forever until a message arrived
* so something else is wrong. Otherwise, at this point the only
* "acceptable" errno is TIMEDOUT for the other cases.
Expand All @@ -230,7 +231,9 @@ int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, size_t size,
return_code = OS_ERROR;
OS_DEBUG("Unhandled queue_receive error: %s\n", rtems_status_text(status));
}
}else{
}
else
{
*size_copied = impl_size;
return_code = OS_SUCCESS;
}
Expand Down

0 comments on commit 19d29e8

Please sign in to comment.