diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-04-30 20:19:09 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-04-30 20:19:09 +0000 |
commit | 846d1362cd53ea642c5933e307f20f8668254cd3 (patch) | |
tree | 782c6245c59b92bff057acc224cfe9322d8fa53a /sysdeps | |
parent | eaa27aca6ff96aab4f58832545ddc9889baf8129 (diff) | |
download | glibc-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')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
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); |