test: use CMP() macro at one more place

This commit is contained in:
Yu Watanabe
2018-10-16 21:56:46 +09:00
parent 2011149a3c
commit bbddd2b8d9
+1 -7
View File
@@ -54,13 +54,7 @@ struct test {
static int test_compare(const void *a, const void *b) {
const struct test *x = a, *y = b;
if (x->value < y->value)
return -1;
if (x->value > y->value)
return 1;
return 0;
return CMP(x->value, y->value);
}
static void test_hash(const void *a, struct siphash *state) {