diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-22 20:19:49 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-22 21:24:36 +0100 |
commit | 0c2f9b84698b25e6065b9febd21486669a13870f (patch) | |
tree | 5ad727137610aeb1a9f56e01f3a9c82c6950d667 /src/network/test-network.c | |
parent | 12e0f830f592ec4c6bb49ac7ae1e0e84f74105e3 (diff) |
networkd: handle SIGINT and SIGTERM
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r-- | src/network/test-network.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c index 46afeec926..9c372c7798 100644 --- a/src/network/test-network.c +++ b/src/network/test-network.c @@ -21,12 +21,9 @@ #include "networkd.h" -static void test_link(struct udev_device *loopback) { - _cleanup_manager_free_ Manager *manager = NULL; +static void test_link(Manager *manager, struct udev_device *loopback) { Link *link = NULL; - manager_new(&manager); - assert_se(link_new(manager, loopback, &link) >= 0); assert_se(link); } @@ -69,7 +66,7 @@ int main(void) { test_network_get(manager, loopback); - test_link(loopback); + test_link(manager, loopback); assert_se(manager_udev_listen(manager) >= 0); assert_se(manager_udev_enumerate_links(manager) >= 0); |