diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-13 06:27:29 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-13 06:27:29 -0600 |
commit | 724e502370e9e5683869d8b2eadfba6a4a5f787c (patch) | |
tree | 455e117caa0259e29ba0f6ac18ea616008cb2bb3 /apps | |
parent | fe3d5f2106bedf3cfd79da29c7045a8b80166e1d (diff) | |
download | nuttx-724e502370e9e5683869d8b2eadfba6a4a5f787c.tar.gz nuttx-724e502370e9e5683869d8b2eadfba6a4a5f787c.tar.bz2 nuttx-724e502370e9e5683869d8b2eadfba6a4a5f787c.zip |
Remove use of CONFIG_MASK_TASK_ARGS from NSH
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nshlib/nsh.h | 6 | ||||
-rw-r--r-- | apps/nshlib/nsh_proccmds.c | 6 |
2 files changed, 1 insertions, 11 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index c06d4e910..d726b5253 100644 --- a/apps/nshlib/nsh.h +++ b/apps/nshlib/nsh.h @@ -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. diff --git a/apps/nshlib/nsh_proccmds.c b/apps/nshlib/nsh_proccmds.c index 0cbc0f8de..f72d8877f 100644 --- a/apps/nshlib/nsh_proccmds.c +++ b/apps/nshlib/nsh_proccmds.c @@ -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 } } |