fix unix typedef

This commit is contained in:
Aria Beingessner 2022-03-29 22:45:31 -04:00
parent 37d4753776
commit e3a3afe050

View File

@ -18,7 +18,7 @@ mod libc {
fn sun_path_offset(addr: &libc::sockaddr_un) -> usize {
// Work with an actual instance of the type since using a null pointer is UB
let base = (addr as *const libc::sockaddr_un).addr();
let path = (&addr.sun_path as *const i8).addr();
let path = (&addr.sun_path as *const libc::c_char).addr();
path - base
}