diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-04 21:24:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-04 21:24:00 +0000 |
commit | f34406ac488b6d5fb2f50f026e1964fb33ae649d (patch) | |
tree | 7d51b44539ecbfa57e4550023a92357dda1b70e3 /nuttx/sched/task_vfork.c | |
parent | 7071ca9d21d783827f93fcd25631aa2da8df8fe4 (diff) | |
download | px4-nuttx-f34406ac488b6d5fb2f50f026e1964fb33ae649d.tar.gz px4-nuttx-f34406ac488b6d5fb2f50f026e1964fb33ae649d.tar.bz2 px4-nuttx-f34406ac488b6d5fb2f50f026e1964fb33ae649d.zip |
Divide struct tcb_s into structs task_tcb_s and pthread_tcb_s
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5611 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_vfork.c')
-rw-r--r-- | nuttx/sched/task_vfork.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/sched/task_vfork.c b/nuttx/sched/task_vfork.c index f5d41bc8b..082854d60 100644 --- a/nuttx/sched/task_vfork.c +++ b/nuttx/sched/task_vfork.c @@ -108,7 +108,7 @@ FAR struct tcb_s *task_vforksetup(start_t retaddr) { struct tcb_s *parent = (FAR struct tcb_s *)g_readytorun.head; - struct tcb_s *child; + struct task_tcb_s *child; int priority; int ret; @@ -116,7 +116,7 @@ FAR struct tcb_s *task_vforksetup(start_t retaddr) /* Allocate a TCB for the child task. */ - child = (FAR struct tcb_s*)kzalloc(sizeof(struct tcb_s)); + child = (FAR struct task_tcb_s *)kzalloc(sizeof(struct task_tcb_s)); if (!child) { set_errno(ENOMEM); @@ -152,10 +152,10 @@ FAR struct tcb_s *task_vforksetup(start_t retaddr) } svdbg("parent=%p, returning child=%p\n", parent, child); - return child; + return (FAR struct tcb_s *)child; errout_with_tcb: - sched_releasetcb(child); + sched_releasetcb((FAR struct tcb_s *)child); set_errno(-ret); return NULL; } |