summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-18 06:11:13 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-18 06:11:13 +0000
commita9f021ba74c923abb237547c7f6d9c5e7a45ba22 (patch)
treed00a93b34c1b77d9bbd57c5f236600a664dd351b /libc/sysdeps/linux/common
parentf665baae825ff4b1efbccfb263dac93fea0fe0a5 (diff)
fix warnings when arch lacks get_kernel_syms syscall (like ia64)
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/get_kernel_syms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/get_kernel_syms.c b/libc/sysdeps/linux/common/get_kernel_syms.c
index ae19cd2c7..92a105ebd 100644
--- a/libc/sysdeps/linux/common/get_kernel_syms.c
+++ b/libc/sysdeps/linux/common/get_kernel_syms.c
@@ -9,13 +9,13 @@
#include "syscalls.h"
-#ifdef __NR_get_kernel_syms
struct kernel_sym;
+#ifdef __NR_get_kernel_syms
_syscall1(int, get_kernel_syms, struct kernel_sym *, table);
#else
int get_kernel_syms(struct kernel_sym *table)
{
__set_errno(ENOSYS);
- return (unsigned long)-1;
+ return -1;
}
#endif