summaryrefslogtreecommitdiff
path: root/nuttx/sched/task/task_spawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/task/task_spawn.c')
-rw-r--r--nuttx/sched/task/task_spawn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/task/task_spawn.c b/nuttx/sched/task/task_spawn.c
index 2f556120f..2b09e63bb 100644
--- a/nuttx/sched/task/task_spawn.c
+++ b/nuttx/sched/task/task_spawn.c
@@ -149,11 +149,11 @@ static int task_spawn_exec(FAR pid_t *pidp, FAR const char *name,
/* Start the task */
- pid = TASK_CREATE(name, priority, stacksize, entry, argv);
+ pid = task_create(name, priority, stacksize, entry, argv);
if (pid < 0)
{
ret = get_errno();
- sdbg("ERROR: TASK_CREATE failed: %d\n", ret);
+ sdbg("ERROR: task_create failed: %d\n", ret);
goto errout;
}
@@ -416,7 +416,7 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
* task.
*/
- proxy = TASK_CREATE("task_spawn_proxy", param.sched_priority,
+ proxy = task_create("task_spawn_proxy", param.sched_priority,
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE,
(main_t)task_spawn_proxy,
(FAR char * const*)NULL);