Fix warnings

This commit is contained in:
Jeremy Soller
2018-11-25 10:34:02 -07:00
parent 52493a1ec3
commit a5279b648f
6 changed files with 22 additions and 25 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ pub unsafe extern "C" fn execve(
argv: *const *mut c_char,
envp: *const *mut c_char,
) -> c_int {
let path = unsafe { CStr::from_ptr(path) };
let path = CStr::from_ptr(path);
Sys::execve(path, argv, envp)
}