From ef1cb0763a14f58f5ec9ff55e2fb30e8ad374a76 Mon Sep 17 00:00:00 2001 From: Nicolas Dusart Date: Tue, 25 Jul 2017 11:03:38 +0200 Subject: [PATCH] change type of INADDR constants to in_addr_t --- src/unix/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 3f708a6628eb6..cb66c049fd013 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -224,10 +224,10 @@ pub const IPPROTO_UDP: ::c_int = 17; pub const IPPROTO_IP: ::c_int = 0; pub const IPPROTO_IPV6: ::c_int = 41; -pub const INADDR_LOOPBACK: ::c_int = 2130706433; -pub const INADDR_ANY: ::c_int = 0; -pub const INADDR_BROADCAST: ::c_int = 4294967295; -pub const INADDR_NONE: ::c_int = 4294967295; +pub const INADDR_LOOPBACK: in_addr_t = 2130706433; +pub const INADDR_ANY: in_addr_t = 0; +pub const INADDR_BROADCAST: in_addr_t = 4294967295; +pub const INADDR_NONE: in_addr_t = 4294967295; cfg_if! { if #[cfg(dox)] {