From e83dca9817614d0dc77ce1e5dc13eed44b61eb2f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 4 Oct 2022 13:59:21 +0200 Subject: user/libc: camellia_open, takes cwd into account --- src/user/app/drawmouse/drawmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/app/drawmouse/drawmouse.c') diff --git a/src/user/app/drawmouse/drawmouse.c b/src/user/app/drawmouse/drawmouse.c index 6ddfc79..6e2a881 100644 --- a/src/user/app/drawmouse/drawmouse.c +++ b/src/user/app/drawmouse/drawmouse.c @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -50,7 +50,7 @@ struct packet { int main(void) { char buf[64]; - handle_t fd = _syscall_open("/kdev/ps2/mouse", 15, OPEN_READ); + handle_t fd = camellia_open("/kdev/ps2/mouse", OPEN_READ); if (fd < 0) { eprintf("couldn't open mouse"); return 1; -- cgit v1.2.3