diff options
author | Alan Somers <asomers@gmail.com> | 2021-04-04 10:05:10 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-04-04 10:05:10 -0600 |
commit | ec13c82bc93070dfe1d81a359174e0495edfe487 (patch) | |
tree | fffd397f286f90445798afc68450e1d972c23d06 | |
parent | 95e259f8e863b547a95a58e9d8956cf2e5c54e88 (diff) | |
download | rust-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.rs | 2 |
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, } |