diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-29 22:14:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-29 22:14:23 +0000 |
commit | 4898271e113d33dfeb5ec487ff92c7ee288c8252 (patch) | |
tree | 0278c4f8188625e24270c9b8f8be68905363f716 /libc/sysdeps/linux | |
parent | 8c9cfb760f9b4deb0e0eb5cb9ae1969985c1cb1e (diff) |
we are handed errno as a negative value so we need to reverse it
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/arm/__syscall_error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/arm/__syscall_error.c b/libc/sysdeps/linux/arm/__syscall_error.c index de65a1f39..40b6b10dc 100644 --- a/libc/sysdeps/linux/arm/__syscall_error.c +++ b/libc/sysdeps/linux/arm/__syscall_error.c @@ -24,6 +24,6 @@ * an error number into errno. */ int attribute_hidden __syscall_error(int err_no) { - __set_errno(err_no); + __set_errno(-err_no); return -1; } |