summaryrefslogtreecommitdiffstats
path: root/apps/nshlib
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-13 06:27:29 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-13 06:27:29 -0600
commit724e502370e9e5683869d8b2eadfba6a4a5f787c (patch)
tree455e117caa0259e29ba0f6ac18ea616008cb2bb3 /apps/nshlib
parentfe3d5f2106bedf3cfd79da29c7045a8b80166e1d (diff)
Remove use of CONFIG_MASK_TASK_ARGS from NSH
Diffstat (limited to 'apps/nshlib')
-rw-r--r--apps/nshlib/nsh.h6
-rw-r--r--apps/nshlib/nsh_proccmds.c6
2 files changed, 1 insertions, 11 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h
index c06d4e9100..d726b5253e 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 0cbc0f8dee..f72d8877f2 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
}
}