about summary refs log tree commit diff
path: root/resolv/res_send.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/res_send.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/res_send.c')
-rw-r--r--resolv/res_send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 3de0b3e07c..b7b8ecdfc4 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -424,7 +424,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
 	 * Some resolvers want to even out the load on their nameservers.
 	 * Note that RES_BLAST overrides RES_ROTATE.
 	 */
-	if (__builtin_expect ((statp->options & RES_ROTATE) != 0, 0)) {
+	if (__glibc_unlikely ((statp->options & RES_ROTATE) != 0)) {
 		struct sockaddr_in ina;
 		struct sockaddr_in6 *inp;
 		int lastns = statp->nscount - 1;