Skip to content

Commit

Permalink
Merge pull request #894 from skliper/fix854-const_correct
Browse files Browse the repository at this point in the history
Fix #854, Const correct input pointers
  • Loading branch information
astrogeco authored Mar 17, 2021
2 parents c332d9b + d414c62 commit 8d6638d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/os/portable/os-impl-bsd-select.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
*
* returns: Highest numbered file descriptor in the output fd_set
*-----------------------------------------------------------------*/
static int OS_FdSet_ConvertIn_Impl(fd_set *os_set, OS_FdSet *OSAL_set)
static int OS_FdSet_ConvertIn_Impl(fd_set *os_set, const OS_FdSet *OSAL_set)
{
size_t offset;
size_t bit;
Expand Down
2 changes: 1 addition & 1 deletion src/os/shared/inc/os-shared-idmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ void OS_ObjectIdTransactionCancel(OS_object_token_t *token);
Returns: None
------------------------------------------------------------------*/
void OS_ObjectIdTransactionFinish(OS_object_token_t *token, osal_id_t *final_id);
void OS_ObjectIdTransactionFinish(OS_object_token_t *token, const osal_id_t *final_id);

/*----------------------------------------------------------------
Function: OS_ObjectIdConvertToken
Expand Down
2 changes: 1 addition & 1 deletion src/os/shared/src/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ int32 OS_ObjectIdGetById(OS_lock_mode_t lock_mode, osal_objtype_t idtype, osal_i
* be changed.
*
*-----------------------------------------------------------------*/
void OS_ObjectIdTransactionFinish(OS_object_token_t *token, osal_id_t *final_id)
void OS_ObjectIdTransactionFinish(OS_object_token_t *token, const osal_id_t *final_id)
{
OS_common_record_t *record;

Expand Down

0 comments on commit 8d6638d

Please sign in to comment.