diff options
author | Marcus Haehnel <marcus.haehnel@kernkonzept.com> | 2025-06-04 10:15:49 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-06-30 10:35:40 +0200 |
commit | a9577b93a24f58c5b8986c90e9eff2353f608d02 (patch) | |
tree | 19cf805a17dbdf0deebba2bb1a7eb555152daad9 /include/netdb.h | |
parent | e1a6b2b60d1cd86fc918b84eecca1f9ba76cb158 (diff) |
inet/netdb: fix getnameinfo signature
According to POSIX the getnameinfo flags parameter is int and not
unsigned. Adapt accordingly. Glibc has also fixed this in commit
e4ecafe004b3d4270b3a9dace8f970047400ed38 in 2001.
Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h index a85797956..26c999e59 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -689,7 +689,7 @@ extern const char *gai_strerror (int __ecode) __THROW; extern int getnameinfo (const struct sockaddr *__restrict __sa, socklen_t __salen, char *__restrict __host, socklen_t __hostlen, char *__restrict __serv, - socklen_t __servlen, unsigned int __flags); + socklen_t __servlen, int __flags); libc_hidden_proto(getnameinfo) #endif /* POSIX */ |