diff --git a/include/sched.h b/include/sched.h index 0efce85dbfc..0cf488fd7f3 100644 --- a/include/sched.h +++ b/include/sched.h @@ -88,18 +88,18 @@ extern "C" { #ifndef CONFIG_CUSTOM_STACK EXTERN STATUS task_init(FAR _TCB *tcb, const char *name, int priority, FAR uint32 *stack, uint32 stack_size, - main_t entry, char *argv[]); + main_t entry, const char *argv[]); #else EXTERN STATUS task_init(FAR _TCB *tcb, const char *name, int priority, - main_t entry, char *argv[]); + main_t entry, const char *argv[]); #endif EXTERN STATUS task_activate(FAR _TCB *tcb); #ifndef CONFIG_CUSTOM_STACK EXTERN int task_create(const char *name, int priority, int stack_size, - main_t entry, char *argv[]); + main_t entry, const char *argv[]); #else EXTERN int task_create(const char *name, int priority, - main_t entry, char *argv[]); + main_t entry, const char *argv[]); #endif EXTERN STATUS task_delete(pid_t pid); EXTERN STATUS task_restart(pid_t pid); diff --git a/sched/task_create.c b/sched/task_create.c index d142581ffb5..008cc378a0f 100644 --- a/sched/task_create.c +++ b/sched/task_create.c @@ -108,10 +108,10 @@ #ifndef CONFIG_CUSTOM_STACK int task_create(const char *name, int priority, - int stack_size, main_t entry, char *argv[]) + int stack_size, main_t entry, const char *argv[]) #else int task_create(const char *name, int priority, - main_t entry, char *argv[]) + main_t entry, const char *argv[]) #endif { FAR _TCB *tcb; diff --git a/sched/task_init.c b/sched/task_init.c index f1dc42292b1..0b4a3a54d15 100644 --- a/sched/task_init.c +++ b/sched/task_init.c @@ -106,10 +106,10 @@ #ifndef CONFIG_CUSTOM_STACK STATUS task_init(FAR _TCB *tcb, const char *name, int priority, FAR uint32 *stack, uint32 stack_size, - main_t entry, char *argv[]) + main_t entry, const char *argv[]) #else STATUS task_init(FAR _TCB *tcb, const char *name, int priority, - main_t entry, char *argv[]) + main_t entry, const char *argv[]) #endif { STATUS ret;