mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-31 01:47:15 +03:00
networkd: fix reversed arguments
Found by coverity. Also drop unused return value while at it.
This commit is contained in:
parent
93f9da6e0a
commit
bbd1590085
@ -471,7 +471,7 @@ int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, vo
|
||||
return 0;
|
||||
}
|
||||
|
||||
route_update(route, &src, src_prefixlen, &gw, &prefsrc, scope, rt_type, protocol);
|
||||
route_update(route, &src, src_prefixlen, &gw, &prefsrc, scope, protocol, rt_type);
|
||||
|
||||
break;
|
||||
|
||||
|
@ -368,7 +368,7 @@ int route_add(
|
||||
return 0;
|
||||
}
|
||||
|
||||
int route_update(Route *route,
|
||||
void route_update(Route *route,
|
||||
const union in_addr_union *src,
|
||||
unsigned char src_prefixlen,
|
||||
const union in_addr_union *gw,
|
||||
@ -389,8 +389,6 @@ int route_update(Route *route,
|
||||
route->scope = scope;
|
||||
route->protocol = protocol;
|
||||
route->type = type;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int route_remove(Route *route, Link *link,
|
||||
|
@ -64,7 +64,7 @@ int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback
|
||||
int route_get(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, uint32_t table, Route **ret);
|
||||
int route_add(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, uint32_t table, Route **ret);
|
||||
int route_add_foreign(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, uint32_t table, Route **ret);
|
||||
int route_update(Route *route, const union in_addr_union *src, unsigned char src_prefixlen, const union in_addr_union *gw, const union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol, unsigned char type);
|
||||
void route_update(Route *route, const union in_addr_union *src, unsigned char src_prefixlen, const union in_addr_union *gw, const union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol, unsigned char type);
|
||||
|
||||
int route_expire_handler(sd_event_source *s, uint64_t usec, void *userdata);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user