From 5e3cd0e5b56e6c58cfba4d0d38fbbbed3657889d Mon Sep 17 00:00:00 2001 From: Pavel Tvrdik Date: Fri, 11 Nov 2016 17:43:09 +0100 Subject: Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0 --- lib/ip_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ip_test.c') diff --git a/lib/ip_test.c b/lib/ip_test.c index 81b4897e..fd70c957 100644 --- a/lib/ip_test.c +++ b/lib/ip_test.c @@ -31,7 +31,7 @@ test_ipa_pton(void *out_, const void *in_, const void *expected_out_) /* ip_addr == ip6_addr */ } - return ipa_equal(*out, *expected_out) ? BT_SUCCESS : BT_FAILURE; + return ipa_equal(*out, *expected_out); } static int @@ -105,7 +105,7 @@ test_ipa_ntop(void *out_, const void *in_, const void *expected_out_) ip6_ntop(ipa_to_ip6(*in), out); int result = strncmp(out, expected_out, ipa_is_ip4(*in) ? IP4_MAX_TEXT_LENGTH : IP6_MAX_TEXT_LENGTH) == 0; - return result ? BT_SUCCESS : BT_FAILURE; + return result; } static int -- cgit v1.2.3