summaryrefslogtreecommitdiff
path: root/src/sys/socket/mod.rs
diff options
context:
space:
mode:
authorTom Pusateri <pusateri@bangj.com>2018-12-05 14:26:01 -0500
committerTom Pusateri <pusateri@bangj.com>2018-12-16 22:16:27 -0500
commitd1395511a653f216f3223c9a64673291ab1a9045 (patch)
treede48481e31fb05255762695dec14ab72c6966f67 /src/sys/socket/mod.rs
parent51bd0859aa4826687b48e141ee83d9d12f96e7e2 (diff)
downloadnix-d1395511a653f216f3223c9a64673291ab1a9045.zip
Allow 'cargo test' to complete successfully on NetBSD 8.0.
Some tests have been disabled and will need further review.
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r--src/sys/socket/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index 2ac0e24a..c633512d 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -258,9 +258,13 @@ impl Eq for IpMembershipRequest {}
impl fmt::Debug for IpMembershipRequest {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ let mref = &self.0.imr_multiaddr;
+ let maddr = mref.s_addr;
+ let iref = &self.0.imr_interface;
+ let ifaddr = iref.s_addr;
f.debug_struct("IpMembershipRequest")
- .field("imr_multiaddr", &self.0.imr_multiaddr.s_addr)
- .field("imr_interface", &self.0.imr_interface.s_addr)
+ .field("imr_multiaddr", &maddr)
+ .field("imr_interface", &ifaddr)
.finish()
}
}