diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-06 13:38:13 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-10 14:43:05 +0900 |
commit | 545bab1f0afef57dae233d376035540f2cf7a09b (patch) | |
tree | 1c461260121f91e78495679752694fabb6a7796b /src/network/netdev | |
parent | 2fea60901da26ac354cde806d8ef8fb5170eec26 (diff) | |
download | systemd-545bab1f0afef57dae233d376035540f2cf7a09b.tar.gz systemd-545bab1f0afef57dae233d376035540f2cf7a09b.tar.bz2 systemd-545bab1f0afef57dae233d376035540f2cf7a09b.zip |
sd-netlink: add destroy_callback argument to sd_netlink_call_async()
Diffstat (limited to 'src/network/netdev')
-rw-r--r-- | src/network/netdev/bridge.c | 2 | ||||
-rw-r--r-- | src/network/netdev/geneve.c | 2 | ||||
-rw-r--r-- | src/network/netdev/netdev.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/network/netdev/bridge.c b/src/network/netdev/bridge.c index be5914a2fa..3ff7189ca7 100644 --- a/src/network/netdev/bridge.c +++ b/src/network/netdev/bridge.c @@ -129,7 +129,7 @@ static int netdev_bridge_post_create(NetDev *netdev, Link *link, sd_netlink_mess if (r < 0) return log_netdev_error_errno(netdev, r, "Could not append IFLA_INFO_DATA attribute: %m"); - r = sd_netlink_call_async(netdev->manager->rtnl, req, netdev_bridge_set_handler, netdev, 0, NULL); + r = sd_netlink_call_async(netdev->manager->rtnl, req, netdev_bridge_set_handler, NULL, netdev, 0, NULL); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m"); diff --git a/src/network/netdev/geneve.c b/src/network/netdev/geneve.c index 18b6b359f3..ff43f94bd2 100644 --- a/src/network/netdev/geneve.c +++ b/src/network/netdev/geneve.c @@ -135,7 +135,7 @@ static int netdev_geneve_create(NetDev *netdev) { if (r < 0) return log_netdev_error_errno(netdev, r, "Could not append IFLA_LINKINFO attribute: %m"); - r = sd_netlink_call_async(netdev->manager->rtnl, m, geneve_netdev_create_handler, netdev, 0, NULL); + r = sd_netlink_call_async(netdev->manager->rtnl, m, geneve_netdev_create_handler, NULL, netdev, 0, NULL); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m"); diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index 72c9db7d07..77cbdd0e86 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -229,7 +229,7 @@ static int netdev_enslave_ready(NetDev *netdev, Link* link, sd_netlink_message_h if (r < 0) return log_netdev_error_errno(netdev, r, "Could not append IFLA_MASTER attribute: %m"); - r = sd_netlink_call_async(netdev->manager->rtnl, req, callback, link, 0, NULL); + r = sd_netlink_call_async(netdev->manager->rtnl, req, callback, NULL, link, 0, NULL); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m"); @@ -537,13 +537,13 @@ static int netdev_create(NetDev *netdev, Link *link, return log_netdev_error_errno(netdev, r, "Could not append IFLA_LINKINFO attribute: %m"); if (link) { - r = sd_netlink_call_async(netdev->manager->rtnl, m, callback, link, 0, NULL); + r = sd_netlink_call_async(netdev->manager->rtnl, m, callback, NULL, link, 0, NULL); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m"); link_ref(link); } else { - r = sd_netlink_call_async(netdev->manager->rtnl, m, netdev_create_handler, netdev, 0, NULL); + r = sd_netlink_call_async(netdev->manager->rtnl, m, netdev_create_handler, NULL, netdev, 0, NULL); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m"); |