diff --git a/lib/route-table.c b/lib/route-table.c index 6df7237e10a..e8f0623fa58 100644 --- a/lib/route-table.c +++ b/lib/route-table.c @@ -84,7 +84,7 @@ static bool route_table_valid = false; static void route_table_reset(void); static void route_table_handle_msg(const struct route_table_msg *); -static int route_table_parse(struct ofpbuf *, struct route_table_msg *); +static int route_table_parse(struct ofpbuf *, void *change); static void route_table_change(const struct route_table_msg *, void *); static void route_map_clear(void); @@ -109,8 +109,7 @@ route_table_init(void) ovs_assert(!route6_notifier); ovs_router_init(); - nln = nln_create(NETLINK_ROUTE, (nln_parse_func *) route_table_parse, - &rtmsg); + nln = nln_create(NETLINK_ROUTE, route_table_parse, &rtmsg); route_notifier = nln_notifier_create(nln, RTNLGRP_IPV4_ROUTE, @@ -222,8 +221,9 @@ route_table_reset(void) /* Return RTNLGRP_IPV4_ROUTE or RTNLGRP_IPV6_ROUTE on success, 0 on parse * error. */ static int -route_table_parse(struct ofpbuf *buf, struct route_table_msg *change) +route_table_parse(struct ofpbuf *buf, void *change_) { + struct route_table_msg *change = change_; bool parsed, ipv4 = false; static const struct nl_policy policy[] = {