summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-29 22:14:23 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-29 22:14:23 +0000
commit4898271e113d33dfeb5ec487ff92c7ee288c8252 (patch)
tree0278c4f8188625e24270c9b8f8be68905363f716 /libc
parent8c9cfb760f9b4deb0e0eb5cb9ae1969985c1cb1e (diff)
we are handed errno as a negative value so we need to reverse it
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/arm/__syscall_error.c2
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;
}