about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--nscd/connections.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 526c988500..f33e50a273 100644
--- 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.
diff --git a/nscd/connections.c b/nscd/connections.c
index 179b0a332f..a577568b12 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -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,