diff options
| author | yangjie11 <[email protected]> | 2020-11-25 14:36:54 +0800 |
|---|---|---|
| committer | yangjie11 <[email protected]> | 2020-11-25 14:36:54 +0800 |
| commit | 6e46b3fec02cd5212402e036bac77622008094dc (patch) | |
| tree | cd992dad68f2da070123d80770877dd1499693b6 /components/libc | |
| parent | d79802b942e77389e1f885d9fe27a62434c652f9 (diff) | |
| parent | 58e9e022a7aa657a8e666025cd2a587a27e911e3 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into malloc
Diffstat (limited to 'components/libc')
| -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) { |
