diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs index 13b384d8899f8..caef9914ac2a7 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -335,7 +335,7 @@ impl Command { cvt(libc::pthread_sigmask(libc::SIG_SETMASK, set.as_ptr(), ptr::null_mut()))?; let mut action: libc::sigaction = mem::zeroed(); action.sa_sigaction = libc::SIG_DFL; - cvt(libc::sigaction(libc::SIGPIPE, &action as *const _, ptr::null_mut()))?; + cvt(libc::sigaction(libc::SIGPIPE, &action, ptr::null_mut()))?; } for callback in self.get_closures().iter_mut() {