summaryrefslogtreecommitdiff
path: root/src/cmd/init/driver
diff options
context:
space:
mode:
authordzwdz2023-09-11 03:17:23 +0200
committerdzwdz2023-09-11 03:17:23 +0200
commit1e54db260811d0d759e76be725d50f4b59d0fc41 (patch)
tree7e7fabe0ec777fd6aa9d1847e746a415f31ea12e /src/cmd/init/driver
parent73ea9f2e3556dd753b32ac4a2c34581a4126eab1 (diff)
*: rename /kdev/ to /dev/
Diffstat (limited to 'src/cmd/init/driver')
-rw-r--r--src/cmd/init/driver/ps2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/init/driver/ps2.c b/src/cmd/init/driver/ps2.c
index 874e672..d0480bc 100644
--- a/src/cmd/init/driver/ps2.c
+++ b/src/cmd/init/driver/ps2.c
@@ -1,5 +1,6 @@
#include "driver.h"
#include <assert.h>
+#include <camellia.h>
#include <camellia/compat.h>
#include <camellia/syscalls.h>
#include <err.h>
@@ -94,7 +95,7 @@ static void kb_thread(void *unused) {
int fd;
(void)unused;
- fd = _sys_open("/kdev/ps2/kb", 12, 0);
+ fd = camellia_open("/dev/ps2/kb", OPEN_READ);
if (fd < 0) err(1, "open");
while (true) {