diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-04-19 14:29:11 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-04-19 14:29:24 +0200 |
commit | bee05c9d58a34ec5886faf3b56ecaa56355d94bf (patch) | |
tree | a06d305b3059a1fbbf55f7e183102124ed02a02f /resolv/res_init.c | |
parent | 3e2cf872a5509d5ba903c1766ca533d56c430655 (diff) | |
download | glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar.gz glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.tar.bz2 glibc-bee05c9d58a34ec5886faf3b56ecaa56355d94bf.zip |
resolv: Replace __builtin_expect with __glibc_unlikely/__glibc_likely
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r-- | resolv/res_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index 923724f86d..23676e994d 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -356,7 +356,7 @@ __res_vinit(res_state statp, int preinit) { statp->nsort = nsort; (void) fclose(fp); } - if (__builtin_expect(statp->nscount == 0, 0)) { + if (__glibc_unlikely (statp->nscount == 0)) { statp->nsaddr.sin_addr = __inet_makeaddr(IN_LOOPBACKNET, 1); statp->nsaddr.sin_family = AF_INET; statp->nsaddr.sin_port = htons(NAMESERVER_PORT); |