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/init/main.c | 2 +- src/init/syscalls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init') diff --git a/src/init/main.c b/src/init/main.c index 06ac3a2..d24dda0 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -16,7 +16,7 @@ const char *multipageify(const char *str) { #define mount(path) _syscall_mount(path, sizeof(path)-1, 0) -int main() { +int main(void) { mount("/"); mount("/some/where"); mount("/some"); diff --git a/src/init/syscalls.c b/src/init/syscalls.c index 8d87beb..01dda51 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -8,7 +8,7 @@ _Noreturn void _syscall_exit(const char *msg, size_t len) { __builtin_unreachable(); } -int _syscall_fork() { +int _syscall_fork(void) { return _syscall(_SYSCALL_FORK, 0, 0, 0); } -- cgit v1.2.3