Skip to content

Commit 3f9b323

Browse files
committed
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
2 parents 71daf0c + 1f5debf commit 3f9b323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/uclibc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@ extern "C" {
23262326
hostlen: ::socklen_t,
23272327
serv: *mut ::c_char,
23282328
sevlen: ::socklen_t,
2329-
flags: ::c_uint,
2329+
flags: ::c_int,
23302330
) -> ::c_int;
23312331
}
23322332

0 commit comments

Comments
 (0)