mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
pthread/cond: fix compile break
N/A Change-Id: Ia22d7c2039cc7b5e93646037d6072248eabcbe36 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user