summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-14 09:53:11 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-14 09:53:11 -0600
commit899b59b58caa3827312019f492f8780bdaec8968 (patch)
treef2d454e24e5d2c0ecbf5a7303d391adfbdff2536 /nuttx/sched
parentaf9256f22d7bf2aecb5a12433e38e5b3bb801ee4 (diff)
downloadnuttx-899b59b58caa3827312019f492f8780bdaec8968.tar.gz
nuttx-899b59b58caa3827312019f492f8780bdaec8968.tar.bz2
nuttx-899b59b58caa3827312019f492f8780bdaec8968.zip
Fix some compile issues introduces with removal of CONFIG_MAX_TASK_ARGS
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/task/task_vfork.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/sched/task/task_vfork.c b/nuttx/sched/task/task_vfork.c
index 3b0ffad76..20e74179b 100644
--- a/nuttx/sched/task/task_vfork.c
+++ b/nuttx/sched/task/task_vfork.c
@@ -116,7 +116,9 @@ static inline void vfork_namesetup(FAR struct tcb_s *parent,
static inline int vfork_stackargsetup(FAR struct tcb_s *parent,
FAR struct task_tcb_s *child)
{
- /* Is the parent a task? or a pthread? */
+ /* Is the parent a task? or a pthread? Only tasks (and kernel threads)
+ * have command line arguments.
+ */
child->argv = NULL;
if ((parent->flags & TCB_FLAG_TTYPE_MASK) != TCB_FLAG_TTYPE_PTHREAD)
@@ -159,6 +161,8 @@ static inline int vfork_stackargsetup(FAR struct tcb_s *parent,
child->argv[argc] = NULL;
}
+
+ return OK;
}
/****************************************************************************