[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题
This commit is contained in:
parent
b7dd3cae09
commit
cb54cda19e
|
@ -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