network: Use CMP() macro for comparison.

Follow up for PRs #9764 and #9760.
This commit is contained in:
Filipe Brandenburger 2018-08-02 16:00:53 -07:00
parent 84fb2131d0
commit 26cdf3e50b
1 changed files with 1 additions and 6 deletions

View File

@ -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 = {