diff --git a/core/adapter/syscall/src/hdf_syscall_adapter.c b/core/adapter/syscall/src/hdf_syscall_adapter.c index 2759120dc6fdacb63d7613ae8b2bec7ebdb8f693..91b03d50e100903034b1559e1ff6395240c08360 100644 --- a/core/adapter/syscall/src/hdf_syscall_adapter.c +++ b/core/adapter/syscall/src/hdf_syscall_adapter.c @@ -211,7 +211,7 @@ static int32_t AssignPfds(struct HdfDevListenerThread *thread, struct pollfd **p } #define POLL_WAIT_TIME_MS 100 -static int32_t HdfDevEventListenTask(void *para) +static void* HdfDevEventListenTask(void *para) { struct HdfDevListenerThread *thread = (struct HdfDevListenerThread *)para; struct pollfd *pfds = NULL; diff --git a/include/osal/osal_thread.h b/include/osal/osal_thread.h index 136783e10b60c2d326024f4a239bf9b6407a76db..c17ce9f82f16255bbb532eeef0796ec38e40f4ea 100644 --- a/include/osal/osal_thread.h +++ b/include/osal/osal_thread.h @@ -71,7 +71,7 @@ struct OsalThreadParam { * @since 1.0 * @version 1.0 */ -typedef int (*OsalThreadEntry)(void *); +typedef void* (*OsalThreadEntry)(void *); /** * @brief Describes a thread.