Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #854, Const correct input pointers #894

Merged
merged 1 commit into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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