summaryrefslogtreecommitdiff
path: root/src/user/lib/draw/draw.c
diff options
context:
space:
mode:
authordzwdz2022-10-04 13:59:21 +0200
committerdzwdz2022-10-04 13:59:21 +0200
commite83dca9817614d0dc77ce1e5dc13eed44b61eb2f (patch)
tree71bcb994d9cb4199cb002d39c06769f38be1ece2 /src/user/lib/draw/draw.c
parent710e9b2b5c16f74f66420c66d12455ad518d42c7 (diff)
user/libc: camellia_open, takes cwd into account
Diffstat (limited to 'src/user/lib/draw/draw.c')
-rw-r--r--src/user/lib/draw/draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/draw/draw.c b/src/user/lib/draw/draw.c
index 943b8ba..95a8921 100644
--- a/src/user/lib/draw/draw.c
+++ b/src/user/lib/draw/draw.c
@@ -1,4 +1,4 @@
-#include <camellia/flags.h>
+#include <camellia.h>
#include <camellia/syscalls.h>
#include <errno.h>
#include <stdio.h>
@@ -33,7 +33,7 @@ int fb_setup(struct framebuf *fb, const char *base) {
/* assumes the read went correctly */
fclose(f);
- fb->fd = _syscall_open(path, strlen(path), OPEN_RW);
+ fb->fd = camellia_open(path, OPEN_RW);
if (fb->fd < 0) return fb->fd;
fb->width = strtol(spec, &spec, 0);