]> git.sur5r.net Git - freertos/commitdiff
Get rid of compiler warnings.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 1 Apr 2007 19:40:34 +0000 (19:40 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 1 Apr 2007 19:40:34 +0000 (19:40 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@72 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/Common/Minimal/death.c
Demo/Common/Minimal/dynamic.c

index a3d849e97c6e947497047bf14842d1b1716f7514..de57696105dbf7600a8f7bc99fbc7cecab0f01c0 100644 (file)
@@ -110,7 +110,7 @@ unsigned portBASE_TYPE *puxPriority;
        puxPriority = ( unsigned portBASE_TYPE * ) pvPortMalloc( sizeof( unsigned portBASE_TYPE ) );\r
        *puxPriority = uxPriority;\r
 \r
-       xTaskCreate( vCreateTasks, "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
+       xTaskCreate( vCreateTasks, ( signed portCHAR * ) "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
 \r
        /* Record the number of tasks that are running now so we know if any of the\r
        suicidal tasks have failed to be killed. */\r
@@ -177,11 +177,11 @@ unsigned portBASE_TYPE uxPriority;
                /* Just loop round, delaying then creating the four suicidal tasks. */\r
                vTaskDelay( xDelay );\r
 \r
-               xTaskCreate( vSuicidalTask, "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask1 );\r
-               xTaskCreate( vSuicidalTask, "SUICID2", deathSTACK_SIZE, &xCreatedTask1, uxPriority, NULL );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask1 );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID2", deathSTACK_SIZE, &xCreatedTask1, uxPriority, NULL );\r
 \r
-               xTaskCreate( vSuicidalTask, "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask2 );\r
-               xTaskCreate( vSuicidalTask, "SUICID2", deathSTACK_SIZE, &xCreatedTask2, uxPriority, NULL );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask2 );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID2", deathSTACK_SIZE, &xCreatedTask2, uxPriority, NULL );\r
 \r
                ++usCreationCount;\r
        }\r
index fb8b80c2d1d50122c61e5dd24352ac63f7180dc8..7ad58e9342dc9e87bc5e6eac79c38eda5c971939 100644 (file)
@@ -110,8 +110,8 @@ static portTASK_FUNCTION_PROTO( vQueueReceiveWhenSuspendedTask, pvParameters );
 static portTASK_FUNCTION_PROTO( vQueueSendWhenSuspendedTask, pvParameters );\r
 \r
 /* Demo task specific constants. */\r
-#define priSTACK_SIZE                          ( ( unsigned portSHORT ) 128 )\r
-#define priSLEEP_TIME                          ( ( portTickType ) 100 )\r
+#define priSTACK_SIZE                          ( configMINIMAL_STACK_SIZE )\r
+#define priSLEEP_TIME                          ( ( portTickType ) 128 )\r
 #define priLOOPS                                       ( 5 )\r
 #define priMAX_COUNT                           ( ( unsigned portLONG ) 0xff )\r
 #define priNO_BLOCK                                    ( ( portTickType ) 0 )\r