| author | |
| committer | |
| log | 2ccfb1dafd03c906c5ca22f4eaaf07feaff758e5 |
| tree | b22b220b70e7c5039eb40201f3314b7a00b0f0fe |
| parent | 18ffd48b60aacf3cf1ea387f513848818731dbea |
std.c.NI was never used in the source, so let's finally use it and make
the function more clear!
This is a breaking change, although a minor one: If you previously passed 0 here
(meaning no flags), then now you have to pass an empty struct (.{}) instead.
Otherwise, you probably used @bitCast() shenanigans here (like
@bitCast(c.NI { .NUMERICHOST = true }) and that will still work, but you can
also get rid of the @bitCast() now!1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/c.zig+1-1| ... | @@ -9774,7 +9774,7 @@ pub extern "c" fn getnameinfo( | ... | @@ -9774,7 +9774,7 @@ pub extern "c" fn getnameinfo( |
| 9774 | hostlen: socklen_t, | 9774 | hostlen: socklen_t, |
| 9775 | noalias serv: ?[*]u8, | 9775 | noalias serv: ?[*]u8, |
| 9776 | servlen: socklen_t, | 9776 | servlen: socklen_t, |
| 9777 | flags: u32, | 9777 | flags: NI, |
| 9778 | ) EAI; | 9778 | ) EAI; |
| 9779 | 9779 | ||
| 9780 | pub extern "c" fn gai_strerror(errcode: EAI) [*:0]const u8; | 9780 | pub extern "c" fn gai_strerror(errcode: EAI) [*:0]const u8; |