From d8483a24e85db1dcd6f4c7b788e61950a8202193 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sun, 2 Oct 2022 12:40:43 +0200 Subject: [PATCH] include/threads.h: return values should be integer type to prevent compiler warnings --- include/threads.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/threads.h b/include/threads.h index a52b17561b5..2bc81c34f1c 100644 --- a/include/threads.h +++ b/include/threads.h @@ -38,11 +38,11 @@ /* Indicates thread error status */ -#define thrd_success ((FAR void *)OK) -#define thrd_timedout ((FAR void *)ETIMEDOUT) -#define thrd_busy ((FAR void *)EBUSY) -#define thrd_nomem ((FAR void *)ENOMEM) -#define thrd_error ((FAR void *)ERROR) +#define thrd_success (OK) +#define thrd_timedout (ETIMEDOUT) +#define thrd_busy (EBUSY) +#define thrd_nomem (ENOMEM) +#define thrd_error (ERROR) /* Defines the type of a mutex */