diff options
author | dzwdz | 2022-10-04 13:59:21 +0200 |
---|---|---|
committer | dzwdz | 2022-10-04 13:59:21 +0200 |
commit | e83dca9817614d0dc77ce1e5dc13eed44b61eb2f (patch) | |
tree | 71bcb994d9cb4199cb002d39c06769f38be1ece2 /src/user/app/netstack/netstack.c | |
parent | 710e9b2b5c16f74f66420c66d12455ad518d42c7 (diff) |
user/libc: camellia_open, takes cwd into account
Diffstat (limited to 'src/user/app/netstack/netstack.c')
-rw-r--r-- | src/user/app/netstack/netstack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/netstack/netstack.c b/src/user/app/netstack/netstack.c index c0934fd..852cd37 100644 --- a/src/user/app/netstack/netstack.c +++ b/src/user/app/netstack/netstack.c @@ -1,6 +1,6 @@ #include "proto.h" #include "util.h" -#include <camellia/flags.h> +#include <camellia.h> #include <camellia/syscalls.h> #include <stdbool.h> #include <stddef.h> @@ -34,7 +34,7 @@ int main(int argc, char **argv) { eprintf("usage: netstack iface ip gateway"); return 1; } - state.raw_h = _syscall_open(argv[1], strlen(argv[1]), OPEN_RW); + state.raw_h = camellia_open(argv[1], OPEN_RW); if (state.raw_h < 0) { eprintf("couldn't open %s", argv[1]); return 1; |