summaryrefslogtreecommitdiff
path: root/lib/ip_test.c
diff options
context:
space:
mode:
authorPavel Tvrdik <pawel.tvrdik@gmail.com>2016-11-11 17:43:09 +0100
committerPavel Tvrdik <pawel.tvrdik@gmail.com>2016-11-11 17:43:09 +0100
commit5e3cd0e5b56e6c58cfba4d0d38fbbbed3657889d (patch)
tree3e96b946c06176731b1d2ba27605dc257ef9c7bc /lib/ip_test.c
parentfa71b268a8d15d579f50d7f4f92e2edb3b431e05 (diff)
Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0
Diffstat (limited to 'lib/ip_test.c')
-rw-r--r--lib/ip_test.c4
1 files changed, 2 insertions, 2 deletions
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