Fix macro usage

This commit is contained in:
Denis Silakov 2016-02-19 18:03:32 +03:00
parent 7b58e91d6f
commit 85fb63cfbb

View file

@ -530,7 +530,7 @@ diff -Naur glibc-2.15-a316c1f.orig/resolv/res_send.c glibc-2.15-a316c1f/resolv/r
+ MSG_TRUNC which is only available on Linux. We + MSG_TRUNC which is only available on Linux. We
+ can abstract out the Linux-specific feature in the + can abstract out the Linux-specific feature in the
+ future to detect truncation. */ + future to detect truncation. */
+ if (__glibc_unlikely (*thisanssizp < *thisresplenp)) { + if (__builtin_expect((*thisanssizp < *thisresplenp),0)) {
+ Dprint(statp->options & RES_DEBUG, + Dprint(statp->options & RES_DEBUG,
+ (stdout, ";; response may be truncated (UDP)\n") + (stdout, ";; response may be truncated (UDP)\n")
+ ); + );