Skip to content

Commit ef1cb07

Browse files
committed
change type of INADDR constants to in_addr_t
1 parent 7442182 commit ef1cb07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ pub const IPPROTO_UDP: ::c_int = 17;
224224
pub const IPPROTO_IP: ::c_int = 0;
225225
pub const IPPROTO_IPV6: ::c_int = 41;
226226

227-
pub const INADDR_LOOPBACK: ::c_int = 2130706433;
228-
pub const INADDR_ANY: ::c_int = 0;
229-
pub const INADDR_BROADCAST: ::c_int = 4294967295;
230-
pub const INADDR_NONE: ::c_int = 4294967295;
227+
pub const INADDR_LOOPBACK: in_addr_t = 2130706433;
228+
pub const INADDR_ANY: in_addr_t = 0;
229+
pub const INADDR_BROADCAST: in_addr_t = 4294967295;
230+
pub const INADDR_NONE: in_addr_t = 4294967295;
231231

232232
cfg_if! {
233233
if #[cfg(dox)] {

0 commit comments

Comments
 (0)