diff options
| author | Wang-Huachen <[email protected]> | 2020-11-30 12:48:23 +0800 |
|---|---|---|
| committer | Wang-Huachen <[email protected]> | 2020-11-30 12:48:23 +0800 |
| commit | f7b553b193deb179e23843d759d20d83da4b85d3 (patch) | |
| tree | ff949a536a962896aec25ff73e0abd874c84a6af /components/libc/pthreads | |
| parent | 9756c77f0447f9ce4f00a37600298a1f1fd90cda (diff) | |
| parent | af95348bf1dd06ed2147cf9caee8a78513c31a72 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/libc/pthreads')
| -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) { |
