summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMarcus Haehnel <marcus.haehnel@kernkonzept.com>2025-06-04 10:15:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-06-30 10:35:40 +0200
commita9577b93a24f58c5b8986c90e9eff2353f608d02 (patch)
tree19cf805a17dbdf0deebba2bb1a7eb555152daad9 /libc
parente1a6b2b60d1cd86fc918b84eecca1f9ba76cb158 (diff)
inet/netdb: fix getnameinfo signatureHEADmaster
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 'libc')
-rw-r--r--libc/inet/resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 130a9a505..44685e6b8 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1892,7 +1892,7 @@ int getnameinfo(const struct sockaddr *sa,
socklen_t hostlen,
char *serv,
socklen_t servlen,
- unsigned flags)
+ int flags)
{
int serrno = errno;
bool ok = 0;