summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/execvp.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/unistd/execvp.c')
-rw-r--r--userland/libc/unistd/execvp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/userland/libc/unistd/execvp.c b/userland/libc/unistd/execvp.c
index 573e822..e38b4b7 100644
--- a/userland/libc/unistd/execvp.c
+++ b/userland/libc/unistd/execvp.c
@@ -1,8 +1,8 @@
-#include <unistd.h>
#include <syscall.h>
+#include <unistd.h>
// FIXME: Path resolution
int execvp(const char *file, char *const argv[]) {
- struct SYS_EXEC_PARAMS args = {.path = file, .argv = argv};
+ struct SYS_EXEC_PARAMS args = {.path = file, .argv = (char **)argv};
return syscall(SYS_EXEC, &args, 0, 0, 0, 0);
}