diff options
| author | Bernard Xiong <[email protected]> | 2020-11-24 23:30:36 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-24 23:30:36 +0800 |
| commit | 984d6f15772028b5a35f111afd241cfb05dfee20 (patch) | |
| tree | 4c0e76dca8696c827683a4f4c01677e567f57a25 /components | |
| parent | d97a44526cdf93dde6e5cf08b9e760ca281aad78 (diff) | |
| parent | cb54cda19ebeadcebc87f98bb7a1d32e6bc80840 (diff) | |
Merge pull request #4084 from KyleChenjh/posix_sem_find
[bug] [libc] 修复posix_sem_find中iter->sem的数据类型转换问题
Diffstat (limited to 'components')
| -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) { |
