diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-26 20:17:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-26 20:17:29 +0000 |
commit | 8300858eb811cc92011e98a5d89390df420e665e (patch) | |
tree | 34b5782ba8b0613427d231151c3111b886474da1 /nuttx/sched/sched_getfiles.c | |
parent | 03a486c40db2af681a40776e54d7f936c7e9d499 (diff) | |
download | px4-nuttx-8300858eb811cc92011e98a5d89390df420e665e.tar.gz px4-nuttx-8300858eb811cc92011e98a5d89390df420e665e.tar.bz2 px4-nuttx-8300858eb811cc92011e98a5d89390df420e665e.zip |
Move file data from TCB to task group
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5567 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_getfiles.c')
-rw-r--r-- | nuttx/sched/sched_getfiles.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/sched/sched_getfiles.c b/nuttx/sched/sched_getfiles.c index 256b4cb6b..eca4ba3ff 100644 --- a/nuttx/sched/sched_getfiles.c +++ b/nuttx/sched/sched_getfiles.c @@ -70,7 +70,10 @@ FAR struct filelist *sched_getfiles(void) { FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head; - return rtcb->filelist; + FAR struct task_group_s *group = rtcb->group; + + DEBUGASSERT(group); + return &group->tg_filelist; } #endif /* CONFIG_NFILE_DESCRIPTORS */ |