Skip to content

Commit

Permalink
Auto merge of #1993 - kolapapa:uclibc-dnslookup, r=JohnTitor
Browse files Browse the repository at this point in the history
restore the type of the parameter `flags` of `getnameinfo` to `c_int`

Restore the type of the parameter `flags` of `getnameinfo` to `c_int`

At present, all the implementation parameters of `getnameinfo` `flags` are of type `int`, and some constants defined are also of type `int`. I have seen the implementation of uclibc. The `flags` values are basically macro definitions, so should we not do this by uclibc alone kind of special treatment.

These several places also define the `int` type.
https://github.com/rust-lang/libc/blob/master/src/unix/uclibc/mod.rs#L1375
  • Loading branch information
bors committed Dec 10, 2020
2 parents 71daf0c + 1f5debf commit 3f9b323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/uclibc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,7 @@ extern "C" {
hostlen: ::socklen_t,
serv: *mut ::c_char,
sevlen: ::socklen_t,
flags: ::c_uint,
flags: ::c_int,
) -> ::c_int;
}

Expand Down

0 comments on commit 3f9b323

Please sign in to comment.