diff options
| author | chenjh <[email protected]> | 2020-11-24 11:18:54 +0800 |
|---|---|---|
| committer | chenjh <[email protected]> | 2020-11-24 11:18:54 +0800 |
| commit | cb54cda19ebeadcebc87f98bb7a1d32e6bc80840 (patch) | |
| tree | dcdb966d229c9b276e482ac4d1dd60b31c91455d | |
| parent | b7dd3cae098e3427443d4238c883ca7631980ce8 (diff) | |
[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题
| -rw-r--r-- | components/libc/pthreads/semaphore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/pthreads/semaphore.c b/components/libc/pthreads/semaphore.c index 2bef10022e..2ed93e99b6 100644 --- a/components/libc/pthreads/semaphore.c +++ b/components/libc/pthreads/semaphore.c @@ -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) { |
