Skip to content

Commit d4c8507

Browse files
authored
Merge pull request #22834 from krkk/hi-this-is-my-first-PR-and-heres-my-breaking-change-haha
std.c: Improve the description of getnameinfo() arguments: optional pointers and specialized `flags` type
2 parents 00316bf + 2ccfb1d commit d4c8507

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/c.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9770,11 +9770,11 @@ pub extern "c" fn freeaddrinfo(res: *addrinfo) void;
97709770
pub extern "c" fn getnameinfo(
97719771
noalias addr: *const sockaddr,
97729772
addrlen: socklen_t,
9773-
noalias host: [*]u8,
9773+
noalias host: ?[*]u8,
97749774
hostlen: socklen_t,
9775-
noalias serv: [*]u8,
9775+
noalias serv: ?[*]u8,
97769776
servlen: socklen_t,
9777-
flags: u32,
9777+
flags: NI,
97789778
) EAI;
97799779

97809780
pub extern "c" fn gai_strerror(errcode: EAI) [*:0]const u8;

0 commit comments

Comments
 (0)