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 #1062, const correct OS_SelectFdIsSet #1063

Merged
merged 1 commit into from
Jun 10, 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/inc/osapi-select.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int32 OS_SelectFdClear(OS_FdSet *Set, osal_id_t objid);
* @retval true FdSet structure contains ID
* @retval false FDSet structure does not contain ID
*/
bool OS_SelectFdIsSet(OS_FdSet *Set, osal_id_t objid);
bool OS_SelectFdIsSet(const OS_FdSet *Set, osal_id_t objid);
/**@}*/

#endif /* OSAPI_SELECT_H */
2 changes: 1 addition & 1 deletion src/os/shared/src/osapi-select.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ int32 OS_SelectFdClear(OS_FdSet *Set, osal_id_t objid)
* See description in API and header file for detail
*
*-----------------------------------------------------------------*/
bool OS_SelectFdIsSet(OS_FdSet *Set, osal_id_t objid)
bool OS_SelectFdIsSet(const OS_FdSet *Set, osal_id_t objid)
{
int32 return_code;
osal_index_t local_id;
Expand Down
4 changes: 2 additions & 2 deletions src/ut-stubs/osapi-select-stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ int32 OS_SelectFdClear(OS_FdSet *Set, osal_id_t objid)
* Generated stub function for OS_SelectFdIsSet()
* ----------------------------------------------------
*/
bool OS_SelectFdIsSet(OS_FdSet *Set, osal_id_t objid)
bool OS_SelectFdIsSet(const OS_FdSet *Set, osal_id_t objid)
{
UT_GenStub_SetupReturnBuffer(OS_SelectFdIsSet, bool);

UT_GenStub_AddParam(OS_SelectFdIsSet, OS_FdSet *, Set);
UT_GenStub_AddParam(OS_SelectFdIsSet, const OS_FdSet *, Set);
UT_GenStub_AddParam(OS_SelectFdIsSet, osal_id_t, objid);

UT_GenStub_Execute(OS_SelectFdIsSet, Basic, NULL);
Expand Down