1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

resolv: Replace __builtin_expect with __glibc_unlikely/__glibc_likely

This commit is contained in:
Florian Weimer
2017-04-19 14:29:11 +02:00
parent 3e2cf872a5
commit bee05c9d58
6 changed files with 41 additions and 20 deletions

View File

@ -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;