From: RichardBarry Date: Wed, 22 Aug 2007 16:56:05 +0000 (+0000) Subject: Changed a couple of casts to remove compiler warnings. X-Git-Tag: V4.5.0~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4146923f9132a01cc550cb379f5f04a93d719e05;p=freertos Changed a couple of casts to remove compiler warnings. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@104 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/queue.c b/Source/queue.c index 0431715df..5bf3b4055 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -546,7 +546,7 @@ signed portCHAR *pcOriginalReadPosition; if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) { portENTER_CRITICAL(); - vTaskPriorityInherit( ( xTaskHandle * const ) pxQueue->pxMutexHolder ); + vTaskPriorityInherit( ( void * const ) pxQueue->pxMutexHolder ); portEXIT_CRITICAL(); } } @@ -719,7 +719,7 @@ static void prvCopyDataToQueue( xQUEUE *pxQueue, const void *pvItemToQueue, port if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) { /* The mutex is no longer being held. */ - vTaskPriorityDisinherit( ( xTaskHandle * const ) pxQueue->pxMutexHolder ); + vTaskPriorityDisinherit( ( void * const ) pxQueue->pxMutexHolder ); } } #endif