summaryrefslogtreecommitdiff
path: root/src/network/networkd-ipv4ll.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-28 21:06:52 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-02 06:29:32 +0100
commit302a796f5a9d64f844698eb90ff4227ba7cc0457 (patch)
tree0a0d9b3245c8b07137f65f97c723d61025d3bc2a /src/network/networkd-ipv4ll.c
parent10ff4eb621e72918e974dc55d6d1f9f58335ae42 (diff)
downloadsystemd-302a796f5a9d64f844698eb90ff4227ba7cc0457.tar.gz
network: use typesafe netlink_call_async() macro where applicable
Diffstat (limited to 'src/network/networkd-ipv4ll.c')
-rw-r--r--src/network/networkd-ipv4ll.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/network/networkd-ipv4ll.c b/src/network/networkd-ipv4ll.c
index 926dec9a8a..3562e90535 100644
--- a/src/network/networkd-ipv4ll.c
+++ b/src/network/networkd-ipv4ll.c
@@ -51,8 +51,7 @@ static int ipv4ll_address_lost(Link *link) {
return 0;
}
-static int ipv4ll_route_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) {
- Link *link = userdata;
+static int ipv4ll_route_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) {
int r;
assert(link);
@@ -72,8 +71,7 @@ static int ipv4ll_route_handler(sd_netlink *rtnl, sd_netlink_message *m, void *u
return 1;
}
-static int ipv4ll_address_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) {
- Link *link = userdata;
+static int ipv4ll_address_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) {
int r;
assert(link);