summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
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