aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_query.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_query.c
parent3e2cf872a5509d5ba903c1766ca533d56c430655 (diff)
downloadglibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.zip
glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar.gz
glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar.bz2
resolv: Replace __builtin_expect with __glibc_unlikely/__glibc_likely
Diffstat (limited to 'resolv/res_query.c')
-rw-r--r--resolv/res_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_query.c b/resolv/res_query.c
index ec65bab..0ca3a65 100644
--- a/resolv/res_query.c
+++ b/resolv/res_query.c
@@ -199,7 +199,7 @@ __libc_res_nquery(res_state statp,
nquery1 = n;
}
- if (__builtin_expect (n <= 0, 0) && !use_malloc) {
+ if (__glibc_unlikely (n <= 0) && !use_malloc) {
/* Retry just in case res_nmkquery failed because of too
short buffer. Shouldn't happen. */
bufsize = (type == T_QUERY_A_AND_AAAA ? 2 : 1) * MAXPACKET;