mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
network: Use CMP() macro for comparison.
Follow up for PRs #9764 and #9760.
This commit is contained in:
parent
84fb2131d0
commit
26cdf3e50b
@ -36,12 +36,7 @@ static int network_config_compare_func(const void *a, const void *b) {
|
||||
if (r != 0)
|
||||
return r;
|
||||
|
||||
if (x->line < y->line)
|
||||
return -1;
|
||||
if (x->line > y->line)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
return CMP(x->line, y->line);
|
||||
}
|
||||
|
||||
const struct hash_ops network_config_hash_ops = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user