summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-02 15:59:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-02 15:59:42 +0000
commitc3e496ad6e836db85c8c8fa7118aa9ed8b99ded3 (patch)
treee0dd64ace7312188c40f2f8a780af36506e3bb7f /nuttx/include
parent68551d0cf274eacbf5c6de959e7bf812a6ee7eba (diff)
downloadpx4-nuttx-c3e496ad6e836db85c8c8fa7118aa9ed8b99ded3.tar.gz
px4-nuttx-c3e496ad6e836db85c8c8fa7118aa9ed8b99ded3.tar.bz2
px4-nuttx-c3e496ad6e836db85c8c8fa7118aa9ed8b99ded3.zip
Fix error in set_errno macro
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3455 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/errno.h b/nuttx/include/errno.h
index 1316b56fc..09c9690b6 100644
--- a/nuttx/include/errno.h
+++ b/nuttx/include/errno.h
@@ -50,7 +50,7 @@
#define errno *get_errno_ptr()
#ifndef CONFIG_NUTTX_KERNEL
-# define set_errno(e) do { errno = (int)(a); } while (0)
+# define set_errno(e) do { errno = (int)(e); } while (0)
# define get_errno(e) errno
#endif