diff --git a/src/test/test-prioq.c b/src/test/test-prioq.c index f7fb5ce422..57147a166f 100644 --- a/src/test/test-prioq.c +++ b/src/test/test-prioq.c @@ -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) {