mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-19 12:14:30 +08:00
[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题
This commit is contained in:
@@ -64,7 +64,7 @@ static sem_t *posix_sem_find(const char* name)
|
|||||||
|
|
||||||
for (iter = posix_sem_list; iter != RT_NULL; iter = iter->next)
|
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)
|
if (strncmp(object->name, name, RT_NAME_MAX) == 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user