Merge pull request #4084 from KyleChenjh/posix_sem_find
[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题
This commit is contained in:
commit
984d6f1577
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue