diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-13 20:51:56 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-13 20:51:56 +0200 |
commit | bbe181b489921e5afeaa2b0bc1c16c62aeef8f65 (patch) | |
tree | 578d86e4bafd93fdf16bb66cb550a77a2784947e /src/libsystemd/sd-netlink/test-netlink.c | |
parent | 1c4baffc1895809bae9ac36b670af90a4cb9cd7d (diff) |
sd-netlink: drop the write-queue
AF_NETLINK is not write-buffered, so this was actually never used.
Diffstat (limited to 'src/libsystemd/sd-netlink/test-netlink.c')
-rw-r--r-- | src/libsystemd/sd-netlink/test-netlink.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsystemd/sd-netlink/test-netlink.c b/src/libsystemd/sd-netlink/test-netlink.c index 60a4601e7e..c9cb415ca0 100644 --- a/src/libsystemd/sd-netlink/test-netlink.c +++ b/src/libsystemd/sd-netlink/test-netlink.c @@ -115,7 +115,6 @@ static void test_link_get(sd_netlink *rtnl, int ifindex) { assert_se(sd_netlink_message_read_ether_addr(r, IFLA_ADDRESS, ð_data) == 0); - assert_se(sd_netlink_flush(rtnl) >= 0); assert_se((m = sd_netlink_message_unref(m)) == NULL); assert_se((r = sd_netlink_message_unref(r)) == NULL); } @@ -138,7 +137,6 @@ static void test_address_get(sd_netlink *rtnl, int ifindex) { assert_se(sd_netlink_message_read_string(r, IFA_LABEL, &label) == 0); assert_se(sd_netlink_message_read_cache_info(r, IFA_CACHEINFO, &cache) == 0); - assert_se(sd_netlink_flush(rtnl) >= 0); assert_se((m = sd_netlink_message_unref(m)) == NULL); assert_se((r = sd_netlink_message_unref(r)) == NULL); @@ -434,7 +432,6 @@ int main(void) { test_link_get(rtnl, if_loopback); test_address_get(rtnl, if_loopback); - assert_se(sd_netlink_flush(rtnl) >= 0); assert_se((m = sd_netlink_message_unref(m)) == NULL); assert_se((r = sd_netlink_message_unref(r)) == NULL); assert_se((rtnl = sd_netlink_unref(rtnl)) == NULL); |