about summary refs log tree commit diff
path: root/resolv/gai_suspend.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-04-19 14:29:11 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-04-19 14:29:24 +0200
commitbee05c9d58a34ec5886faf3b56ecaa56355d94bf (patch)
treea06d305b3059a1fbbf55f7e183102124ed02a02f /resolv/gai_suspend.c
parent3e2cf872a5509d5ba903c1766ca533d56c430655 (diff)
downloadglibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar.gz
glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar.xz
glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.zip
resolv: Replace __builtin_expect with __glibc_unlikely/__glibc_likely
Diffstat (limited to 'resolv/gai_suspend.c')
-rw-r--r--resolv/gai_suspend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/gai_suspend.c b/resolv/gai_suspend.c
index 3ee6a08b4f..a86bd4360d 100644
--- a/resolv/gai_suspend.c
+++ b/resolv/gai_suspend.c
@@ -141,7 +141,7 @@ gai_suspend (const struct gaicb *const list[], int ent,
 	  /* An error occurred.  Possibly it's EINTR.  We have to translate
 	     the timeout error report of `pthread_cond_timedwait' to the
 	     form expected from `gai_suspend'.  */
-	  if (__builtin_expect (result, ETIMEDOUT) == ETIMEDOUT)
+	  if (__glibc_likely (result == ETIMEDOUT))
 	    result = EAI_AGAIN;
 	  else if (result == EINTR)
 	    result = EAI_INTR;