summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-02-15 13:44:06 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-02-15 13:44:06 +0000
commit092e3b3d2b75976b81a9a947107c9fff36c9f523 (patch)
tree78228396346e91dc469f12fbf1705f66fa882c50
parentfb88c0c197d8c3eb524d85d17df3d4ca33649f28 (diff)
downloadfreertos-092e3b3d2b75976b81a9a947107c9fff36c9f523.tar.gz
freertos-092e3b3d2b75976b81a9a947107c9fff36c9f523.tar.bz2
freertos-092e3b3d2b75976b81a9a947107c9fff36c9f523.tar.xz
Remove casts that were generating warnings (even though the casts were added to remove warnings with some compilers).
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@191 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r--Source/queue.c4
-rw-r--r--Source/tasks.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/queue.c b/Source/queue.c
index dd5ec864..578181c3 100644
--- a/Source/queue.c
+++ b/Source/queue.c
@@ -807,7 +807,7 @@ signed portCHAR *pcOriginalReadPosition;
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
{
portENTER_CRITICAL();
- vTaskPriorityInherit( ( void * const ) pxQueue->pxMutexHolder );
+ vTaskPriorityInherit( ( void * ) pxQueue->pxMutexHolder );
portEXIT_CRITICAL();
}
}
@@ -985,7 +985,7 @@ static void prvCopyDataToQueue( xQUEUE *pxQueue, const void *pvItemToQueue, port
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
{
/* The mutex is no longer being held. */
- vTaskPriorityDisinherit( ( void * const ) pxQueue->pxMutexHolder );
+ vTaskPriorityDisinherit( ( void * ) pxQueue->pxMutexHolder );
pxQueue->pxMutexHolder = NULL;
}
}
diff --git a/Source/tasks.c b/Source/tasks.c
index 7063ab80..5eaebe2a 100644
--- a/Source/tasks.c
+++ b/Source/tasks.c
@@ -1339,7 +1339,7 @@ unsigned portBASE_TYPE uxNumberOfTasks;
{
portENTER_CRITICAL();
{
- pcTraceBuffer = ( volatile signed portCHAR * volatile )pcBuffer;
+ pcTraceBuffer = ( signed portCHAR * )pcBuffer;
pcTraceBufferStart = pcBuffer;
pcTraceBufferEnd = pcBuffer + ( ulBufferSize - tskSIZE_OF_EACH_TRACE_LINE );
xTracing = pdTRUE;