mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 21:06:58 +08:00
Fix error in set_errno macro
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3455 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user