aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-30 20:19:09 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-30 20:19:09 +0000
commit846d1362cd53ea642c5933e307f20f8668254cd3 (patch)
tree782c6245c59b92bff057acc224cfe9322d8fa53a /sysdeps/posix
parenteaa27aca6ff96aab4f58832545ddc9889baf8129 (diff)
downloadglibc-846d1362cd53ea642c5933e307f20f8668254cd3.tar
glibc-846d1362cd53ea642c5933e307f20f8668254cd3.tar.gz
glibc-846d1362cd53ea642c5933e307f20f8668254cd3.tar.bz2
glibc-846d1362cd53ea642c5933e307f20f8668254cd3.zip
* posix/Makefile (tests): Add tst-getaddrinfo3.
* posix/tst-getaddrinfo3.c: New file. * sysdeps/posix/getaddrinfo.c (gaih_inet): Add parenthesis in test for better readability.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 03d26086ac..fa3bbe44cf 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -529,7 +529,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
{
if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET)
at->family = AF_INET;
- else if (req->ai_family == AF_INET6 && req->ai_flags & AI_V4MAPPED)
+ else if (req->ai_family == AF_INET6 && (req->ai_flags & AI_V4MAPPED))
{
at->addr[3] = at->addr[0];
at->addr[2] = htonl (0xffff);