summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-23 01:20:37 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-23 01:20:37 +0000
commit44bb4a058ba60cc05607246da05ff104d6716e6b (patch)
treea3b8b9703b0f7e9e52927abcdc87eccc6325a792 /libc
parent355c2405c2ce04f3a87fb7b11a87086f1d8c1870 (diff)
dont invert errno as assembly routines store positive values, not negative ones
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/ia64/__syscall_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/ia64/__syscall_error.c b/libc/sysdeps/linux/ia64/__syscall_error.c
index 910b32cda..bb4ba4755 100644
--- a/libc/sysdeps/linux/ia64/__syscall_error.c
+++ b/libc/sysdeps/linux/ia64/__syscall_error.c
@@ -14,6 +14,6 @@ int __syscall_error(void) attribute_hidden;
int __syscall_error(void)
{
register int err_no asm("%r8");
- __set_errno(-err_no);
+ __set_errno(err_no);
return -1;
}