Skip to content

Commit 5114daa

Browse files
committed
Auto merge of #2137 - asomers:netbsd-unpacked, r=Amanieu
Removed repr(packed) from some NetBSD structures The structures in question have always been properly aligned, so the packed attribute only serves to generate annoying compiler warnings. It will be removed in the next release of NetBSD. NetBSD/src@415c686
2 parents 95e259f + ec13c82 commit 5114daa

File tree

1 file changed

+0
-2
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+0
-2
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ s_no_extra_traits! {
445445
pub ipi_ifindex: ::c_uint,
446446
}
447447

448-
#[repr(packed)]
449448
pub struct arphdr {
450449
pub ar_hrd: u16,
451450
pub ar_pro: u16,
@@ -454,7 +453,6 @@ s_no_extra_traits! {
454453
pub ar_op: u16,
455454
}
456455

457-
#[repr(packed)]
458456
pub struct in_addr {
459457
pub s_addr: ::in_addr_t,
460458
}

0 commit comments

Comments
 (0)