Remove use of CONFIG_MASK_TASK_ARGS from NSH

This commit is contained in:
Gregory Nutt 2014-11-13 06:27:29 -06:00
parent a32e3bdb7b
commit da8ba5dfd5
2 changed files with 1 additions and 11 deletions

View File

@ -454,12 +454,6 @@
# endif
#endif
#if defined(CONFIG_NSH_BUILTIN_APPS) || defined(CONFIG_NSH_FILE_APPS)
# if CONFIG_NSH_MAXARGUMENTS > CONFIG_MAX_TASK_ARGS
# warning Number of built-in and file task arguments will be truncated to CONFIG_MAX_TASK_ARGS
# endif
#endif
/* Argument list size
*
* argv[0]: The command name.

View File

@ -236,9 +236,7 @@ static void ps_task(FAR struct tcb_s *tcb, FAR void *arg)
char buffer[8];
int ret;
#endif
#if CONFIG_MAX_TASK_ARGS > 2
int i;
#endif
/* Show task status */
@ -293,12 +291,10 @@ static void ps_task(FAR struct tcb_s *tcb, FAR void *arg)
/* Then any additional arguments */
#if CONFIG_MAX_TASK_ARGS > 2
for (i = 2; i <= CONFIG_MAX_TASK_ARGS && ttcb->argv[i]; i++)
for (i = 2; ttcb->argv[i]; i++)
{
nsh_output(vtbl, ", %p", ttcb->argv[i]);
}
#endif
}
}