From d54dcb2efc4be344900a7721ac4b65b47840c5d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:21:52 +0200 Subject: user/libc: exit() What an interesting commit. --- src/user/app/init/driver/ps2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/user/app/init/driver/ps2.c') diff --git a/src/user/app/init/driver/ps2.c b/src/user/app/init/driver/ps2.c index 6aed2fb..532695f 100644 --- a/src/user/app/init/driver/ps2.c +++ b/src/user/app/init/driver/ps2.c @@ -2,6 +2,7 @@ #include #include #include +#include static const char keymap_lower[] = { @@ -79,8 +80,8 @@ static void main_loop(void) { void ps2_drv(void) { fd = _syscall_open("/kdev/ps2", 9, 0); - if (fd < 0) _syscall_exit(1); + if (fd < 0) exit(1); main_loop(); - _syscall_exit(0); + exit(0); } -- cgit v1.2.3