argv parameter should be 'const'
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@130 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
30c1d1028d
commit
a2c26f080a
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user