diff options
Diffstat (limited to 'src/user/app/testelf/main.c')
-rw-r--r-- | src/user/app/testelf/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user/app/testelf/main.c b/src/user/app/testelf/main.c index de7b965..93a5e11 100644 --- a/src/user/app/testelf/main.c +++ b/src/user/app/testelf/main.c @@ -2,6 +2,7 @@ #include <stdio.h> #include <user/lib/elf.h> #include <user/lib/elfload.h> +#include <unistd.h> const char *str = "Hello!\n", *str2 = "World.\n"; @@ -13,5 +14,5 @@ int main(void) { printf("loaded at %x\n", &_image_base); printf(str); printf(str2); - _syscall_exit(0); + exit(0); } |