Skip to content

Commit e3a3afe

Browse files
committed
fix unix typedef
1 parent 37d4753 commit e3a3afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/os/unix/net/addr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod libc {
1818
fn sun_path_offset(addr: &libc::sockaddr_un) -> usize {
1919
// Work with an actual instance of the type since using a null pointer is UB
2020
let base = (addr as *const libc::sockaddr_un).addr();
21-
let path = (&addr.sun_path as *const i8).addr();
21+
let path = (&addr.sun_path as *const libc::c_char).addr();
2222
path - base
2323
}
2424

0 commit comments

Comments
 (0)