mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-17 18:48:43 +00:00
Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
d6f787afca
commit
b659f0fbdf
100 changed files with 559 additions and 449 deletions
|
|
@ -72,11 +72,11 @@ static struct aiocb * const g_aiocb_init[AIO_NCTRLBLKS] =
|
|||
|
||||
static FAR void * const g_buffers[AIO_NCTRLBLKS] =
|
||||
{
|
||||
(FAR void *)g_wrbuffer1,
|
||||
(FAR void *)NULL,
|
||||
(FAR void *)g_wrbuffer2,
|
||||
(FAR void *)NULL,
|
||||
(FAR void *)g_rdbuffer
|
||||
(FAR char *)g_wrbuffer1,
|
||||
NULL,
|
||||
(FAR char *)g_wrbuffer2,
|
||||
NULL,
|
||||
g_rdbuffer
|
||||
};
|
||||
|
||||
static const FAR uint8_t g_offsets[AIO_NCTRLBLKS] =
|
||||
|
|
|
|||
|
|
@ -523,7 +523,7 @@ void priority_inheritance(void)
|
|||
sparam.sched_priority = PTHREAD_DEFAULT_PRIORITY;
|
||||
}
|
||||
|
||||
my_pri = sparam.sched_priority;
|
||||
my_pri = sparam.sched_priority;
|
||||
|
||||
g_highpri = sched_get_priority_max(SCHED_FIFO);
|
||||
g_lowpri = sched_get_priority_min(SCHED_FIFO);
|
||||
|
|
@ -712,7 +712,7 @@ void priority_inheritance(void)
|
|||
snprintf(args[2], sizeof(args[2]), "%d", i == 0 ? 100000 : 1000);
|
||||
|
||||
pids[i] = task_create(name, priority, CONFIG_DEFAULT_TASK_STACKSIZE,
|
||||
adversary, (FAR char * const *)argv);
|
||||
adversary, argv);
|
||||
priority += PRIORIY_SPREED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue