Skip to content

Commit 27a319e

Browse files
committed
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 ?
2 parents 7442182 + ef1cb07 commit 27a319e

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)