From b628d92e63c92af376c9c3a907df6776a11a27de Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Mon, 30 Aug 2021 17:53:35 -0300 Subject: [PATCH] include/threads: Fix incompatible pointer type on call to pthread_join Signed-off-by: Gustavo Henrique Nihei --- include/threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/threads.h b/include/threads.h index 6873f7b9dd..037318f569 100644 --- a/include/threads.h +++ b/include/threads.h @@ -159,7 +159,7 @@ typedef CODE void (*tss_dtor_t)(FAR void *); static inline int thrd_join(thrd_t thr, int *res) { - pthread_addr_t *value; + pthread_addr_t value; int ret = pthread_join(thr, &value); if (res) {