aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
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
parenteaa27aca6ff96aab4f58832545ddc9889baf8129 (diff)
downloadglibc-846d1362cd53ea642c5933e307f20f8668254cd3.zip
glibc-846d1362cd53ea642c5933e307f20f8668254cd3.tar.gz
glibc-846d1362cd53ea642c5933e307f20f8668254cd3.tar.bz2
* 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')
-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 03d2608..fa3bbe4 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);