Cleanup fedisableexcept to use the same logic as the ARM version. No functional changes.
[platform/upstream/glibc.git] / nis / nis_xdr.c
index 8d0a60b..c391d9c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 1997, 1998, 2005, 2006, 2007 Free Software Foundation, Inc.
+/* Copyright (c) 1997-2014 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
 
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include <rpcsvc/nis.h>
 #include <rpcsvc/nis_callback.h> /* for "official" Solaris xdr functions */
 
@@ -74,7 +75,7 @@ xdr_endpoint (XDR *xdrs, endpoint *objp)
   if (__builtin_expect (res, TRUE))
     {
       res = xdr_string (xdrs, &objp->family, ~0);
-      if (__builtin_expect (res, 1))
+      if (__glibc_likely (res))
        res = xdr_string (xdrs, &objp->proto, ~0);
     }
   return res;