From 3b8b07ee2eb21e043a56cdc548e2be34857adb00 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 24 Aug 2021 17:12:57 +0200 Subject: replace () with (void) in function definitions `()` means that any amt of arguments will be accepted, which isn't what i want --- src/kernel/arch/i386/sysenter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/i386/sysenter.c') diff --git a/src/kernel/arch/i386/sysenter.c b/src/kernel/arch/i386/sysenter.c index b24c857..2470979 100644 --- a/src/kernel/arch/i386/sysenter.c +++ b/src/kernel/arch/i386/sysenter.c @@ -3,7 +3,7 @@ struct registers _sysexit_regs; // a hack -extern void _sysexit_real(); +extern void _sysexit_real(void); void sysexit(struct registers regs) { _sysexit_regs = regs; @@ -13,7 +13,7 @@ void sysexit(struct registers regs) { __builtin_unreachable(); } -_Noreturn void sysenter_stage2() { +_Noreturn void sysenter_stage2(void) { uint64_t val; struct registers *regs = &process_current->regs; -- cgit v1.2.3