From 5fa7639ce803671a2368aca7f5753222626c9dac Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 27 Feb 2021 21:24:26 +0100 Subject: [PATCH] syscall: c syntax do be hard tho --- include/ardix/syscall.h | 2 +- kernel/syscall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ardix/syscall.h b/include/ardix/syscall.h index 8ed975a..a6aa655 100644 --- a/include/ardix/syscall.h +++ b/include/ardix/syscall.h @@ -20,7 +20,7 @@ enum syscall { int syscall(enum syscall number, ...); /** The table of system call handlers, indexed by syscall number. */ -extern const int (*sys_table[NSYSCALLS])(sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, +extern int (*const sys_table[NSYSCALLS])(sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t arg6); /* catchall handler that returns -ENOSYS */ diff --git a/kernel/syscall.c b/kernel/syscall.c index 4c18513..96e29a2 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -9,7 +9,7 @@ [number] (int (*)(sysarg_t, sysarg_t, sysarg_t, sysarg_t, sysarg_t, sysarg_t))(func) __rodata -const int (*sys_table[NSYSCALLS])(sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, +int (*const sys_table[NSYSCALLS])(sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t arg6) = { sys_table_entry(SYSCALL_READ, &sys_read), sys_table_entry(SYSCALL_WRITE, &sys_write),