]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* nscd/connections.c (handle_request): Add a __builtin_expect.
authorUlrich Drepper <drepper@redhat.com>
Mon, 15 Jan 2007 22:38:46 +0000 (22:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 15 Jan 2007 22:38:46 +0000 (22:38 +0000)
ChangeLog
nscd/connections.c

index 526c9885006124fc5d8e971866a0f18307048552..f33e50a27390ef44767ee9f6c505d6f377bd4a8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
 
+       * nscd/connections.c (handle_request): Add a __builtin_expect.
+
        * nscd/connections.c (serv2db): Change type into structure which
        also says whether this is a request for data.  Renamed to
        servinfo.  All users changed.
index 179b0a332f986db8edd09a6f2653393c75263faa..a577568b129805ef1f6beb553d352f9dcc0b79d2 100644 (file)
@@ -970,7 +970,7 @@ cannot handle old request version %d; current version is %d"),
        }
 
       /* Is this service enabled?  */
-      if (!db->enabled)
+      if (__builtin_expect (!db->enabled, 0))
        {
          /* No, sent the prepared record.  */
          if (TEMP_FAILURE_RETRY (send (fd, db->disabled_iov->iov_base,