Skip to content

Commit

Permalink
HOTFIX 20200909, rename id parameter to object_id
Browse files Browse the repository at this point in the history
The name mismatch triggered a doxygen warning.
  • Loading branch information
jphickey committed Sep 15, 2020
1 parent fcc2684 commit 850450c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/os/inc/osapi-os-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ int32 OS_ConvertToArrayIndex (osal_id_t object_id, uint32 *ArrayIndex);
* @retval #OS_SUCCESS @copybrief OS_SUCCESS
* @retval #OS_ERR_INCORRECT_OBJ_TYPE @copybrief OS_ERR_INCORRECT_OBJ_TYPE
* */
int32 OS_ObjectIdToArrayIndex(uint32 idtype, osal_id_t id, uint32 *ArrayIndex);
int32 OS_ObjectIdToArrayIndex(uint32 idtype, osal_id_t object_id, uint32 *ArrayIndex);



Expand Down
6 changes: 3 additions & 3 deletions src/os/shared/src/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,15 +1212,15 @@ int32 OS_GetResourceName(osal_id_t object_id, char *buffer, uint32 buffer_size)
* Otherwise OS_SUCCESS is returned.
*
*-----------------------------------------------------------------*/
int32 OS_ObjectIdToArrayIndex(uint32 idtype, osal_id_t id, uint32 *ArrayIndex)
int32 OS_ObjectIdToArrayIndex(uint32 idtype, osal_id_t object_id, uint32 *ArrayIndex)
{
uint32 max_id;
uint32 obj_index;
uint32 actual_type;
int32 return_code;

obj_index = OS_ObjectIdToSerialNumber_Impl(id);
actual_type = OS_ObjectIdToType_Impl(id);
obj_index = OS_ObjectIdToSerialNumber_Impl(object_id);
actual_type = OS_ObjectIdToType_Impl(object_id);

/*
* If requested by the caller, enforce that the ID is of the correct type.
Expand Down

0 comments on commit 850450c

Please sign in to comment.