Skip to content

Commit dc4d42c

Browse files
authored
ptrace.rs: fix build on FreeBSD ARM / POWER
ARM and POWER use unsigned char.
1 parent 0df53ad commit dc4d42c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/freebsd_maps/ptrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pub fn detach(pid: Pid) -> io::Result<()> {
185185

186186
/// Read virtual memory entry
187187
pub fn read_vm_entry(pid: Pid, vm_entry: ptrace_vm_entry) -> io::Result<ptrace_vm_entry> {
188-
let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _ as *mut i8, 0) };
188+
let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _ as *mut c_char, 0) };
189189

190190
if result == -1 {
191191
Err(io::Error::last_os_error())

0 commit comments

Comments
 (0)