Skip to content

Commit

Permalink
Fix nasa#854, Const correct input pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Mar 11, 2021
1 parent ead5723 commit d414c62
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 d414c62

Please sign in to comment.