Skip to content
Snippets Groups Projects
Commit 27a319e8 authored by bors's avatar bors
Browse files

Auto merge of #698 - ndusart:in_addr_t, r=alexcrichton

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 ?
parents 74421827 ef1cb076
No related branches found
No related tags found
No related merge requests found
......@@ -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)] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment