* nscd/connections.c (handle_request): Add a __builtin_expect.

This commit is contained in:
Ulrich Drepper 2007-01-15 22:38:46 +00:00
parent 9691d83c53
commit 2a1dea970d
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View 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,