mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
sort: fix get_order() if else return statement
Another instance of where returns happen in else clause removed. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
6f4104acbc
commit
6f179db03d
1 changed files with 3 additions and 5 deletions
|
|
@ -149,13 +149,11 @@ int get_order(struct range_t *restrict left, struct range_t *restrict right)
|
|||
ret =
|
||||
strcmp(left->shared_net->name,
|
||||
right->shared_net->name);
|
||||
if (0 < ret) {
|
||||
if (0 < ret)
|
||||
return (0);
|
||||
} else if (ret < 0) {
|
||||
if (ret < 0)
|
||||
return (1);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Select which function is pointed by returner */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue