From 0128c5dc7ff2da36114b8f55187234d9b55db353 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 12:04:05 +0200 Subject: fix typo in _syscall_await definition --- src/init/syscalls.c | 2 +- src/kernel/syscalls.c | 2 +- src/kernel/syscalls.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init/syscalls.c b/src/init/syscalls.c index 4bbd83a..1e11705 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -12,7 +12,7 @@ int _syscall_fork() { return _syscall(_SYSCALL_FORK, 0, 0, 0); } -int _syscall_await(char *buf, int *len) { +int _syscall_await(char *buf, int len) { return _syscall(_SYSCALL_AWAIT, (int)buf, (int)len, 0); } diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 09b3507..13d32a2 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -40,7 +40,7 @@ _Noreturn void _syscall_exit(const char *msg, size_t len) { panic(); } -int _syscall_await(char *buf, int *len) { +int _syscall_await(char *buf, int len) { process_current->state = PS_WAITS4CHILDDEATH; process_current->saved_addr = buf; process_current->saved_len = len; diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h index a986a33..83a68b2 100644 --- a/src/kernel/syscalls.h +++ b/src/kernel/syscalls.h @@ -19,7 +19,7 @@ _Noreturn void _syscall_exit(const char *msg, size_t len); /** Waits for a child to exit, putting its exit message into *buf. * @return the length of the message */ -int _syscall_await(char *buf, int *len); +int _syscall_await(char *buf, int len); /** Creates a copy of the current process, and executes it. * All user memory pages get copied too. -- cgit v1.2.3