diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-01 21:23:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-01 21:23:19 +0000 |
commit | 214b5beecedc8425ae45fc8c715a0c75877458f5 (patch) | |
tree | 95288865ba7fe3559bb81a28e7337a500d2e9eaa /nuttx/sched/get_errno_ptr.c | |
parent | 2e53693f16b113989e2050753483c7b97fb24c45 (diff) | |
download | px4-nuttx-214b5beecedc8425ae45fc8c715a0c75877458f5.tar.gz px4-nuttx-214b5beecedc8425ae45fc8c715a0c75877458f5.tar.bz2 px4-nuttx-214b5beecedc8425ae45fc8c715a0c75877458f5.zip |
errno now defined to be *get_errno_ptr()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@607 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/get_errno_ptr.c')
-rw-r--r-- | nuttx/sched/get_errno_ptr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/sched/get_errno_ptr.c b/nuttx/sched/get_errno_ptr.c index 36598caae..ebf2e105c 100644 --- a/nuttx/sched/get_errno_ptr.c +++ b/nuttx/sched/get_errno_ptr.c @@ -1,5 +1,5 @@ /**************************************************************************** - * get_errno_ptr.c + * sched/get_errno_ptr.c * * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> @@ -44,6 +44,7 @@ #include "os_internal.h" #undef get_errno_ptr +#undef errno /**************************************************************************** * Private Data @@ -93,7 +94,7 @@ FAR int *get_errno_ptr(void) * thread-private errno in the TCB of the running task. */ - return &rtcb->errno; + return &rtcb->pterrno; } } |