diff options
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r-- | src/network/test-network.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c index 49a332a7f9..8eb59b1ced 100644 --- a/src/network/test-network.c +++ b/src/network/test-network.c @@ -170,6 +170,16 @@ static int test_load_config(Manager *manager) { return 0; } +static bool address_equal(const Address *a1, const Address *a2) { + if (a1 == a2) + return true; + + if (!a1 || !a2) + return false; + + return address_compare_func(a1, a2) == 0; +} + static void test_address_equality(void) { _cleanup_(address_freep) Address *a1 = NULL, *a2 = NULL; |