From 481c37b612b2876cecf6124c1593650581854798 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 7 Dec 2019 09:01:14 +0000 Subject: [PATCH] Added missing casts. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13213 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/oslib/include/chjobs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os/oslib/include/chjobs.h b/os/oslib/include/chjobs.h index 0fcdd0bf6..fa201620f 100644 --- a/os/oslib/include/chjobs.h +++ b/os/oslib/include/chjobs.h @@ -165,7 +165,7 @@ static inline void chJobObjectInit(jobs_queue_t *jqp, */ static inline job_descriptor_t *chJobGet(jobs_queue_t *jqp) { - return chGuardedPoolAllocTimeout(&jqp->free, TIME_INFINITE); + return (job_descriptor_t *)chGuardedPoolAllocTimeout(&jqp->free, TIME_INFINITE); } /** @@ -179,7 +179,7 @@ static inline job_descriptor_t *chJobGet(jobs_queue_t *jqp) { */ static inline job_descriptor_t *chJobGetI(jobs_queue_t *jqp) { - return chGuardedPoolAllocI(&jqp->free); + return (job_descriptor_t *)chGuardedPoolAllocI(&jqp->free); } /** @@ -200,7 +200,7 @@ static inline job_descriptor_t *chJobGetI(jobs_queue_t *jqp) { static inline job_descriptor_t *chJobGetTimeoutS(jobs_queue_t *jqp, sysinterval_t timeout) { - return chGuardedPoolAllocTimeoutS(&jqp->free, timeout); + return (job_descriptor_t *)chGuardedPoolAllocTimeoutS(&jqp->free, timeout); } /** @@ -221,7 +221,7 @@ static inline job_descriptor_t *chJobGetTimeoutS(jobs_queue_t *jqp, static inline job_descriptor_t *chJobGetTimeout(jobs_queue_t *jqp, sysinterval_t timeout) { - return chGuardedPoolAllocTimeout(&jqp->free, timeout); + return (job_descriptor_t *)chGuardedPoolAllocTimeout(&jqp->free, timeout); } /**