From 6b09c02e5a59602b8f4ff951084137b5afb3758f Mon Sep 17 00:00:00 2001 From: mertcandav Date: Fri, 16 Feb 2024 00:34:53 +0300 Subject: [PATCH] std::process: use simple parameters --- std/process/cmd_unix.jule | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) } }