summaryrefslogtreecommitdiff
path: root/src/network/networkd-route.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-17 10:12:30 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-17 10:12:30 +0200
commita45bf10d2939f0261f7dbe7ae5092cc1673ebf66 (patch)
tree6c607505f76d2883f0b658dfbbb7419ae9b03df0 /src/network/networkd-route.c
parent999a43f80ac2edfa3881fcf4c42aa1723945fe10 (diff)
parentbd9a722196f7465d2f3104735b7ca9f62ae9a557 (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.c8
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)