\r
void vCreateSuicidalTasks( UBaseType_t uxPriority )\r
{\r
-UBaseType_t *puxPriority;\r
-\r
- /* Create the Creator tasks - passing in as a parameter the priority at which\r
- the suicidal tasks should be created. */\r
- puxPriority = ( UBaseType_t * ) pvPortMalloc( sizeof( UBaseType_t ) );\r
- *puxPriority = uxPriority;\r
-\r
- xTaskCreate( vCreateTasks, "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
+ xTaskCreate( vCreateTasks, "CREATOR", deathSTACK_SIZE, ( void * ) NULL, 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
const TickType_t xDelay = pdMS_TO_TICKS( ( TickType_t ) 1000 );\r
UBaseType_t uxPriority;\r
\r
- uxPriority = *( UBaseType_t * ) pvParameters;\r
- vPortFree( pvParameters );\r
+ /* Remove compiler warning about unused parameter. */\r
+ ( void ) pvParameters;\r
+\r
+ uxPriority = uxTaskPriorityGet( NULL );\r
\r
for( ;; )\r
{\r