diff --git a/std/process/cmd_unix.jule b/std/process/cmd_unix.jule index bfd4a22c3..ac941507f 100644 --- a/std/process/cmd_unix.jule +++ b/std/process/cmd_unix.jule @@ -29,7 +29,7 @@ fn str_slice_to_cstr_slice(s: []str): []*integ::Char { fn execvp(file: str, argv: []str): int { let cargv = str_slice_to_cstr_slice(argv) unsafe { - ret integ::emit[int]("execvp({}, (char*const*){})", (*integ::Char)(&file[0]), &cargv[0]) + ret integ::emit[int]("execvp({}, {})", (*integ::Char)(&file[0]), &cargv[0]) } } @@ -37,7 +37,7 @@ fn execve(file: str, argv: []str, env: []str): int { let cargv = str_slice_to_cstr_slice(argv) let cenv = str_slice_to_cstr_slice(env) unsafe { - ret integ::emit[int]("execve({}, (char*const*){}, (char*const*)({}))", (*integ::Char)(&file[0]), &cargv[0], &cenv[0]) + ret integ::emit[int]("execve({}, {}, {})", (*integ::Char)(&file[0]), &cargv[0], &cenv[0]) } }