summaryrefslogtreecommitdiff
path: root/src/network/test-network.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-09-21 15:53:40 +0200
committerTom Gundersen <teg@jklm.no>2015-10-11 14:21:41 +0200
commitf0213e3796b4dd66e546e2de4d677db319f9171b (patch)
treea7c41b70eb2b3e31e760c64afae75702fe1eb00d /src/network/test-network.c
parente930d14ac87cbd9280719a30c9ae549821f3adaa (diff)
networkd: route/address - simplify and unify creators
Rename new_dynamic() to simply _new() and reuse that from new_static().
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r--src/network/test-network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c
index 5909cc790e..80676651a9 100644
--- a/src/network/test-network.c
+++ b/src/network/test-network.c
@@ -143,8 +143,8 @@ static void test_network_get(Manager *manager, struct udev_device *loopback) {
static void test_address_equality(void) {
_cleanup_address_free_ Address *a1 = NULL, *a2 = NULL;
- assert_se(address_new_dynamic(&a1) >= 0);
- assert_se(address_new_dynamic(&a2) >= 0);
+ assert_se(address_new(&a1) >= 0);
+ assert_se(address_new(&a2) >= 0);
assert_se(address_equal(NULL, NULL));
assert_se(!address_equal(a1, NULL));