Skip to content

Commit ea3ab53

Browse files
committed
Auto merge of #2725 - Meziu:master, r=Amanieu
Horizon OS Nintendo 3DS - Fixed size of sockaddr_in The original API for the platform included these zeroed bytes at the end of the `sockaddr_in` struct, but the socket address calls (like `getsockname`) only write 8 bytes inside `sockaddr_storage`, making checks like the one in https://github.com/rust-lang/rust/blob/95561b336cf82a8250176eb3c61ea61c90e75d47/library/std/src/sys_common/net.rs#L109 faulty. Since `sockaddr_in` is a struct *not* used in internal functionality, it shouldn't be a problem to just get rid of them.
2 parents f05cd2a + 8c60c9a commit ea3ab53

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/unix/newlib/horizon/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ s! {
3535
pub sin_family: ::sa_family_t,
3636
pub sin_port: ::in_port_t,
3737
pub sin_addr: ::in_addr,
38-
pub sin_zero: [::c_uchar; 8],
3938
}
4039

4140
pub struct sockaddr_in6 {

0 commit comments

Comments
 (0)