diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-03 17:59:46 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-05 05:19:02 +0100 |
commit | 56ba90c2df61d3ef04a599af43007434f77bef62 (patch) | |
tree | 8ba083aba39bb980d724cfd92a7dbd47a6842cae /src/network/netdev/netdev.c | |
parent | network: use destroy callback to clear resolved wireguard endpoints (diff) | |
download | systemd-56ba90c2df61d3ef04a599af43007434f77bef62.tar.xz systemd-56ba90c2df61d3ef04a599af43007434f77bef62.zip |
network: use destroy callback to unref netdev attached to event source
Diffstat (limited to 'src/network/netdev/netdev.c')
-rw-r--r-- | src/network/netdev/netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index 06709679a0..52b40dd68e 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -155,7 +155,7 @@ static NetDev *netdev_free(NetDev *netdev) { DEFINE_TRIVIAL_REF_UNREF_FUNC(NetDev, netdev, netdev_free); -void netdev_netlink_destroy_callback(void *userdata) { +void netdev_destroy_callback(void *userdata) { NetDev *netdev = userdata; assert(userdata); @@ -550,7 +550,7 @@ static int netdev_create(NetDev *netdev, Link *link, link_ref(link); } else { r = sd_netlink_call_async(netdev->manager->rtnl, NULL, m, netdev_create_handler, - netdev_netlink_destroy_callback, netdev, 0, __func__); + netdev_destroy_callback, netdev, 0, __func__); if (r < 0) return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m"); |