From: Yu Watanabe Date: Tue, 16 Oct 2018 12:56:46 +0000 (+0900) Subject: test: use CMP() macro at one more place X-Git-Tag: v240~535^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbddd2b8d9b06bfef8b3eb58f53144fa64995083;p=thirdparty%2Fsystemd.git test: use CMP() macro at one more place --- diff --git a/src/test/test-prioq.c b/src/test/test-prioq.c index f7fb5ce4226..57147a166fc 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) {