diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-07-10 03:06:08 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-07-30 14:55:18 +0200 |
commit | 754252f9231adad1993ca010d5b79f8fe54f8e3b (patch) | |
tree | b8ff9553be1d42ebb2e17c40458a52983f03d81e /src/network/networkd-nexthop.c | |
parent | Merge pull request #28564 from YHNdnzj/gpt-auto-kill-more-duplicate (diff) | |
download | systemd-754252f9231adad1993ca010d5b79f8fe54f8e3b.tar.xz systemd-754252f9231adad1993ca010d5b79f8fe54f8e3b.zip |
network: rename sd_netlink_message* req -> m
This also merges neighbor_configure_message() with neighbor_configure().
Diffstat (limited to 'src/network/networkd-nexthop.c')
-rw-r--r-- | src/network/networkd-nexthop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-nexthop.c b/src/network/networkd-nexthop.c index eed28440c2..42b48198af 100644 --- a/src/network/networkd-nexthop.c +++ b/src/network/networkd-nexthop.c @@ -388,7 +388,7 @@ static int nexthop_remove_handler(sd_netlink *rtnl, sd_netlink_message *m, Link } static int nexthop_remove(NextHop *nexthop) { - _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; + _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; Manager *manager; Link *link; int r; @@ -407,15 +407,15 @@ static int nexthop_remove(NextHop *nexthop) { log_nexthop_debug(nexthop, "Removing", link); - r = sd_rtnl_message_new_nexthop(manager->rtnl, &req, RTM_DELNEXTHOP, AF_UNSPEC, RTPROT_UNSPEC); + r = sd_rtnl_message_new_nexthop(manager->rtnl, &m, RTM_DELNEXTHOP, AF_UNSPEC, RTPROT_UNSPEC); if (r < 0) return log_link_error_errno(link, r, "Could not create RTM_DELNEXTHOP message: %m"); - r = sd_netlink_message_append_u32(req, NHA_ID, nexthop->id); + r = sd_netlink_message_append_u32(m, NHA_ID, nexthop->id); if (r < 0) return log_link_error_errno(link, r, "Could not append NHA_ID attribute: %m"); - r = netlink_call_async(manager->rtnl, NULL, req, nexthop_remove_handler, + r = netlink_call_async(manager->rtnl, NULL, m, nexthop_remove_handler, link ? link_netlink_destroy_callback : NULL, link); if (r < 0) return log_link_error_errno(link, r, "Could not send rtnetlink message: %m"); |