summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_post.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 21:17:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 21:17:21 +0000
commit148cde5e982950ad5836fa96baa466de842e1c14 (patch)
treebf737b367b91c5da81345eb21016b07400d7a72f /nuttx/sched/sem_post.c
parentf6b81a790c28d7d36d9de33810df5270c1ebbfd7 (diff)
downloadpx4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.gz
px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.bz2
px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.zip
Finally, a clean SDCC compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@20 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sem_post.c')
-rw-r--r--nuttx/sched/sem_post.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/sem_post.c b/nuttx/sched/sem_post.c
index 348e88c80..3b4fac368 100644
--- a/nuttx/sched/sem_post.c
+++ b/nuttx/sched/sem_post.c
@@ -104,9 +104,9 @@
*
************************************************************/
-int sem_post (sem_t *sem)
+int sem_post(sem_t *sem)
{
- _TCB *stcb;
+ FAR _TCB *stcb;
STATUS ret = ERROR;
irqstate_t saved_state;
@@ -138,7 +138,7 @@ int sem_post (sem_t *sem)
* that we want.
*/
- for (stcb = (_TCB*)g_waitingforsemaphore.head;
+ for (stcb = (FAR _TCB*)g_waitingforsemaphore.head;
((stcb) && (stcb->waitsem != sem));
stcb = stcb->flink);