Skip to content

Commit

Permalink
Auto merge of #698 - ndusart:in_addr_t, r=alexcrichton
Browse files Browse the repository at this point in the history
change type of INADDR constants to in_addr_t

These should be `in_addr_t` (u32) instead of `c_int`

This is a breaking change but it is just breaking newlib platforms for now.

@alexcrichton Do you prefer that I split the definition in submodules, to keep `c_int` in newlib and update the others ?
  • Loading branch information
bors committed Jul 25, 2017
2 parents 7442182 + ef1cb07 commit 27a319e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)] {
Expand Down

0 comments on commit 27a319e

Please sign in to comment.