summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index fec30f97d7..30cc6364e7 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -295,7 +295,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
 	{
 	  if (tp->name != NULL)
 	    {
-	      if (rc = gaih_inet_serv (service->name, tp, &st))
+	      if ((rc = gaih_inet_serv (service->name, tp, &st)))
 		return rc;
 	    }
 	  else
@@ -303,7 +303,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
 	      struct gaih_servtuple **pst = &st;
 	      for (tp++; tp->name; tp++)
 		{
-		  if (rc = gaih_inet_serv (service->name, tp, pst))
+		  if ((rc = gaih_inet_serv (service->name, tp, pst)))
 		    {
 		      if (rc & GAIH_OKIFUNSPEC)
 			continue;
@@ -567,7 +567,7 @@ getaddrinfo (const char *name, const char *service,
 	  if ((pg == NULL) || (pg->gaih != g->gaih))
 	    {
 	      pg = g;
-	      if (i = g->gaih (name, pservice, hints, end))
+	      if ((i = g->gaih (name, pservice, hints, end)))
 		{
 		  if ((hints->ai_family == AF_UNSPEC) && (i & GAIH_OKIFUNSPEC))
 		    continue;