Merge pull request #4084 from KyleChenjh/posix_sem_find

[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题
This commit is contained in:
Bernard Xiong 2020-11-24 23:30:36 +08:00 committed by GitHub
commit 984d6f1577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ static sem_t *posix_sem_find(const char* name)
for (iter = posix_sem_list; iter != RT_NULL; iter = iter->next)
{
object = (rt_object_t)&(iter->sem);
object = (rt_object_t)iter->sem;
if (strncmp(object->name, name, RT_NAME_MAX) == 0)
{