diff options
Diffstat (limited to 'src/sys/ptrace.rs')
-rw-r--r-- | src/sys/ptrace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/ptrace.rs b/src/sys/ptrace.rs index 59ceb378..4fb4f5b5 100644 --- a/src/sys/ptrace.rs +++ b/src/sys/ptrace.rs @@ -178,7 +178,7 @@ pub fn setoptions(pid: Pid, options: Options) -> Result<()> { let res = unsafe { libc::ptrace(Request::PTRACE_SETOPTIONS as RequestType, libc::pid_t::from(pid), - ptr::null_mut::<libc::c_void>(), + ptr::null_mut::<c_void>(), options.bits() as *mut c_void) }; Errno::result(res).map(|_| ()) @@ -200,7 +200,7 @@ pub fn setsiginfo(pid: Pid, sig: &siginfo_t) -> Result<()> { Errno::clear(); libc::ptrace(Request::PTRACE_SETSIGINFO as RequestType, libc::pid_t::from(pid), - ptr::null_mut::<libc::c_void>(), + ptr::null_mut::<c_void>(), sig as *const _ as *const c_void) }; match Errno::result(ret) { |