summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2021-08-22 12:04:05 +0200
committerdzwdz2021-08-22 12:04:05 +0200
commit0128c5dc7ff2da36114b8f55187234d9b55db353 (patch)
treea504eb2a7c310bf54f6fc531e2b20a72142cc3bf
parent175b575bbdca5d620c1ace1281568b2bb9c6b021 (diff)
fix typo in _syscall_await definition
-rw-r--r--src/init/syscalls.c2
-rw-r--r--src/kernel/syscalls.c2
-rw-r--r--src/kernel/syscalls.h2
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.