summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
authordzwdz2021-09-12 22:08:38 +0200
committerdzwdz2021-09-12 22:08:38 +0200
commite03d4e97e2f36254e85d15b1e7a2c03ba3493ca9 (patch)
tree847cc8f45da5981d758374833d94e5063a07592e /src/init/main.c
parentd789f43bb82b8c43f0e8a5a53a4ce8b30d1c0984 (diff)
simplify `fs_respond`'s signature
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 28bb4a7..1842156 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -54,7 +54,7 @@ void fs_server(handle_t back) {
case VFSOP_OPEN:
_syscall_write(tty_fd, buf, len);
log(" was opened. ");
- _syscall_fs_respond(0, NULL, 0); // doesn't check the path yet
+ _syscall_fs_respond(NULL, 0); // doesn't check the path yet
break;
case VFSOP_WRITE:
@@ -62,7 +62,7 @@ void fs_server(handle_t back) {
for (int i = 0; i < len; i++) buf[i] &= ~32;
// and passthrough to tty
_syscall_write(tty_fd, buf, len);
- _syscall_fs_respond(len, NULL, 0); // return the amt of bytes written
+ _syscall_fs_respond(NULL, len); // return the amt of bytes written
break;
default: