summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-04-04 10:05:10 -0600
committerAlan Somers <asomers@gmail.com>2021-04-04 10:05:10 -0600
commitec13c82bc93070dfe1d81a359174e0495edfe487 (patch)
treefffd397f286f90445798afc68450e1d972c23d06
parent95e259f8e863b547a95a58e9d8956cf2e5c54e88 (diff)
downloadrust-libc-ec13c82bc93070dfe1d81a359174e0495edfe487.tar.gz
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. https://github.com/NetBSD/src/commit/415c686e207c29e0b6329b5045273224c091a434
-rw-r--r--src/unix/bsd/netbsdlike/netbsd/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 82b13e9f4d..2feae2f94d 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -445,7 +445,6 @@ s_no_extra_traits! {
pub ipi_ifindex: ::c_uint,
}
- #[repr(packed)]
pub struct arphdr {
pub ar_hrd: u16,
pub ar_pro: u16,
@@ -454,7 +453,6 @@ s_no_extra_traits! {
pub ar_op: u16,
}
- #[repr(packed)]
pub struct in_addr {
pub s_addr: ::in_addr_t,
}