summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-10 19:09:34 +0000
committerbors <bors@rust-lang.org>2020-12-10 19:09:34 +0000
commit3f9b3239802f3159ed10e7f586d0d49608acf6f3 (patch)
tree2738ad4cc2f5c0d20ddc4e730fcd34b62510e896
parent71daf0c49818c01ea3302692369340bb47321514 (diff)
parent1f5debf70ef601a4f5d5d1cf91023c0af6152838 (diff)
downloadrust-libc-3f9b3239802f3159ed10e7f586d0d49608acf6f3.tar.gz
Auto merge of #1993 - kolapapa:uclibc-dnslookup, r=JohnTitor
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
-rw-r--r--src/unix/uclibc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/uclibc/mod.rs b/src/unix/uclibc/mod.rs
index c72d321bc7..0de35dbef4 100644
--- a/src/unix/uclibc/mod.rs
+++ b/src/unix/uclibc/mod.rs
@@ -2326,7 +2326,7 @@ extern "C" {
hostlen: ::socklen_t,
serv: *mut ::c_char,
sevlen: ::socklen_t,
- flags: ::c_uint,
+ flags: ::c_int,
) -> ::c_int;
}