fix unix typedef
This commit is contained in:
parent
37d4753776
commit
e3a3afe050
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user