1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0

This commit is contained in:
Pavel Tvrdik
2016-11-11 17:43:09 +01:00
parent fa71b268a8
commit 5e3cd0e5b5
20 changed files with 100 additions and 104 deletions

View File

@@ -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