mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
(un)likely: use __builtin_expect to inform expected path
Remove also unnecessary comparison in getdata nth_field(). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
6f179db03d
commit
acba2e265e
4 changed files with 25 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ int
|
|||
int i;
|
||||
/* two spaces are very common in lease file, after them
|
||||
* nearly everything differs */
|
||||
if (a[2] != b[2]) {
|
||||
if (likely(a[2] != b[2])) {
|
||||
return false;
|
||||
}
|
||||
/* " binding state " == 16 chars, this will skip right
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue