From 8775bd3c3b0abe48e88c3fe932a20ea7a38652e1 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Tue, 19 Jan 2021 11:09:04 +0800 Subject: [PATCH] pthread/cond: fix compile break N/A Change-Id: Ia22d7c2039cc7b5e93646037d6072248eabcbe36 Signed-off-by: Jiuzhu Dong --- libs/libc/pthread/pthread_conddestroy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libc/pthread/pthread_conddestroy.c b/libs/libc/pthread/pthread_conddestroy.c index 67ceb8d064c..7619580c5d9 100644 --- a/libs/libc/pthread/pthread_conddestroy.c +++ b/libs/libc/pthread/pthread_conddestroy.c @@ -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;