From 519ab1856fb8c69ff2bb15e512bdb8539c90129c Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 15 May 2012 00:45:14 +0000 Subject: Fix several compiler errors that occur when CONFIG_SCHED_ONEXIT is enabled; on_exit is now used in NxWM::NxConsole to close the window with the NSH session exits git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4738 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/sched/on_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/sched') diff --git a/nuttx/sched/on_exit.c b/nuttx/sched/on_exit.c index 965a3e805..f91eb2e11 100644 --- a/nuttx/sched/on_exit.c +++ b/nuttx/sched/on_exit.c @@ -114,7 +114,7 @@ int on_exit(CODE void (*func)(int, FAR void *), FAR void *arg) if (func && !tcb->onexitfunc) { tcb->onexitfunc = func; - tdb->onexitarg = arg; + tcb->onexitarg = arg; ret = OK; } -- cgit v1.2.3