summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/frv/sysdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/frv/sysdep.c')
-rw-r--r--libc/sysdeps/linux/frv/sysdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/frv/sysdep.c b/libc/sysdeps/linux/frv/sysdep.c
index 17260f72f..7387d1162 100644
--- a/libc/sysdeps/linux/frv/sysdep.c
+++ b/libc/sysdeps/linux/frv/sysdep.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,6 @@
an error number into errno. */
int __syscall_error (int err_no)
{
- __set_errno (err_no);
+ __set_errno (-err_no);
return -1;
}