diff options
Diffstat (limited to 'src/user/bootstrap')
-rw-r--r-- | src/user/bootstrap/tar.c | 6 | ||||
-rw-r--r-- | src/user/bootstrap/tar.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/user/bootstrap/tar.c b/src/user/bootstrap/tar.c index a392f4c..75883e6 100644 --- a/src/user/bootstrap/tar.c +++ b/src/user/bootstrap/tar.c @@ -1,9 +1,9 @@ +#include "tar.h" #include <camellia/flags.h> #include <camellia/syscalls.h> #include <shared/mem.h> #include <stdint.h> - -#include "tar.h" +#include <unistd.h> #define BUF_SIZE 64 @@ -36,7 +36,7 @@ void tar_driver(void *base) { break; } } - _syscall_exit(0); + exit(0); } static void *tar_open(const char *path, int len, void *base, size_t base_len) { diff --git a/src/user/bootstrap/tar.h b/src/user/bootstrap/tar.h index fe4d6c5..e7ab130 100644 --- a/src/user/bootstrap/tar.h +++ b/src/user/bootstrap/tar.h @@ -1,5 +1,6 @@ #pragma once #include <camellia/types.h> +#include <stddef.h> _Noreturn void tar_driver(void *base); void *tar_find(const char *path, size_t path_len, void *base, size_t base_len); |