mirror of
https://github.com/apache/nuttx.git
synced 2026-09-08 18:06:33 +00:00
pthread/cond: fix compile break
N/A Change-Id: Ia22d7c2039cc7b5e93646037d6072248eabcbe36 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
3a4e465bc3
commit
8775bd3c3b
1 changed files with 2 additions and 1 deletions
|
|
@ -79,9 +79,10 @@ int pthread_cond_destroy(FAR pthread_cond_t *cond)
|
|||
}
|
||||
|
||||
/* Destroy the semaphore contained in the structure */
|
||||
|
||||
else
|
||||
{
|
||||
ret = sem_get_value(&cond->sem, &sval);
|
||||
ret = sem_getvalue(&cond->sem, &sval);
|
||||
if (ret < 0)
|
||||
{
|
||||
ret = -ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue