diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-05-17 10:12:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-05-17 10:12:30 +0200 |
commit | a45bf10d2939f0261f7dbe7ae5092cc1673ebf66 (patch) | |
tree | 6c607505f76d2883f0b658dfbbb7419ae9b03df0 /src/network/networkd-route.c | |
parent | 999a43f80ac2edfa3881fcf4c42aa1723945fe10 (diff) | |
parent | bd9a722196f7465d2f3104735b7ca9f62ae9a557 (diff) |
Merge pull request #3258 from keszybz/small-networkd-cleanup
Small networkd cleanup
Diffstat (limited to 'src/network/networkd-route.c')
-rw-r--r-- | src/network/networkd-route.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 43f37266d8..2b3970289e 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -324,12 +324,6 @@ int route_update(Route *route, return 0; } -void route_drop(Route *route) { - assert(route); - - route_free(route); -} - int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback) { _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; @@ -375,7 +369,7 @@ int route_remove(Route *route, Link *link, else if (route->family == AF_INET6) r = sd_netlink_message_append_in6_addr(req, RTA_SRC, &route->src.in6); if (r < 0) - return log_error_errno(r, "Could not append RTA_DST attribute: %m"); + return log_error_errno(r, "Could not append RTA_SRC attribute: %m"); r = sd_rtnl_message_route_set_src_prefixlen(req, route->src_prefixlen); if (r < 0) |