summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_vfork.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-04 18:46:28 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-04 18:46:28 +0000
commit7071ca9d21d783827f93fcd25631aa2da8df8fe4 (patch)
tree1fab8982b4f2438b1b135fd6c43e7b8a8af78d48 /nuttx/sched/task_vfork.c
parent09afe06037de8f89b2cfa4f1765be407bf1783a2 (diff)
downloadpx4-nuttx-7071ca9d21d783827f93fcd25631aa2da8df8fe4.tar.gz
px4-nuttx-7071ca9d21d783827f93fcd25631aa2da8df8fe4.tar.bz2
px4-nuttx-7071ca9d21d783827f93fcd25631aa2da8df8fe4.zip
Rename _TCB to struct tcb_s
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5610 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_vfork.c')
-rw-r--r--nuttx/sched/task_vfork.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/sched/task_vfork.c b/nuttx/sched/task_vfork.c
index ac86ddc56..f5d41bc8b 100644
--- a/nuttx/sched/task_vfork.c
+++ b/nuttx/sched/task_vfork.c
@@ -105,10 +105,10 @@
*
****************************************************************************/
-FAR _TCB *task_vforksetup(start_t retaddr)
+FAR struct tcb_s *task_vforksetup(start_t retaddr)
{
- _TCB *parent = (FAR _TCB *)g_readytorun.head;
- _TCB *child;
+ struct tcb_s *parent = (FAR struct tcb_s *)g_readytorun.head;
+ struct tcb_s *child;
int priority;
int ret;
@@ -116,7 +116,7 @@ FAR _TCB *task_vforksetup(start_t retaddr)
/* Allocate a TCB for the child task. */
- child = (FAR _TCB*)kzalloc(sizeof(_TCB));
+ child = (FAR struct tcb_s*)kzalloc(sizeof(struct tcb_s));
if (!child)
{
set_errno(ENOMEM);
@@ -203,10 +203,10 @@ errout_with_tcb:
*
****************************************************************************/
-pid_t task_vforkstart(FAR _TCB *child)
+pid_t task_vforkstart(FAR struct tcb_s *child)
{
#if CONFIG_TASK_NAME_SIZE > 0
- _TCB *parent = (FAR _TCB *)g_readytorun.head;
+ struct tcb_s *parent = (FAR struct tcb_s *)g_readytorun.head;
#endif
FAR const char *name;
pid_t pid;
@@ -317,7 +317,7 @@ pid_t task_vforkstart(FAR _TCB *child)
*
****************************************************************************/
-void task_vforkabort(FAR _TCB *child, int errcode)
+void task_vforkabort(FAR struct tcb_s *child, int errcode)
{
/* The TCB was added to the active task list by task_schedsetup() */