diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-26 23:49:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-26 23:49:02 +0000 |
commit | 47b94bafa5045532f239ea57a3610873b1a71368 (patch) | |
tree | 59eb55cb25bbd20b052a87de5838d80a410a1439 /nuttx/sched/sched_getsockets.c | |
parent | b82c36961aa730fc39a9fc8eac17e2518128cb67 (diff) | |
download | px4-firmware-47b94bafa5045532f239ea57a3610873b1a71368.tar.gz px4-firmware-47b94bafa5045532f239ea57a3610873b1a71368.tar.bz2 px4-firmware-47b94bafa5045532f239ea57a3610873b1a71368.zip |
Move socket data from TCB to task group structure.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5570 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_getsockets.c')
-rw-r--r-- | nuttx/sched/sched_getsockets.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/sched/sched_getsockets.c b/nuttx/sched/sched_getsockets.c index cd499420f..ea988d6ff 100644 --- a/nuttx/sched/sched_getsockets.c +++ b/nuttx/sched/sched_getsockets.c @@ -1,7 +1,7 @@ /************************************************************************ * sched/sched_getsockets.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -71,7 +71,10 @@ FAR struct socketlist *sched_getsockets(void) { FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head; - return rtcb->sockets; + FAR struct task_group_s *group = rtcb->group; + + DEBUGASSERT(group); + return &group->tg_socketlist; } #endif /* CONFIG_NSOCKET_DESCRIPTORS */ |