pthread/cond: fix compile break

N/A

Change-Id: Ia22d7c2039cc7b5e93646037d6072248eabcbe36
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2021-01-19 11:09:04 +08:00
committed by dongjiuzhu1
parent 3a4e465bc3
commit 8775bd3c3b
+2 -1
View File
@@ -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;