X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Frtnetlink-link.c;h=98ab3991260fcef85fe2a6b0f3e4d97ed0de18e3;hb=6da1e8091eb2e19de7ba5e0c73ac3e7dd437743d;hp=09ba954ed92cb6aa7e5d69bfd9b6a14fad85ad9a;hpb=ac4d3bcb46fa0acd0b63f79449432df28569f74f;p=sliver-openvswitch.git diff --git a/lib/rtnetlink-link.c b/lib/rtnetlink-link.c index 09ba954ed..98ab39912 100644 --- a/lib/rtnetlink-link.c +++ b/lib/rtnetlink-link.c @@ -71,6 +71,12 @@ rtnetlink_link_parse(struct ofpbuf *buf, return parsed; } +static bool +rtnetlink_link_parse_cb(struct ofpbuf *buf, void *change) +{ + return rtnetlink_link_parse(buf, change); +} + /* Registers 'cb' to be called with auxiliary data 'aux' with network device * change notifications. The notifier is stored in 'notifier', which the * caller must not modify or free. @@ -84,11 +90,11 @@ int rtnetlink_link_notifier_register(struct rtnetlink_notifier *notifier, rtnetlink_link_notify_func *cb, void *aux) { - rtnetlink_parse_func *pf = (rtnetlink_parse_func *) rtnetlink_link_parse; rtnetlink_notify_func *nf = (rtnetlink_notify_func *) cb; if (!rtn) { - rtn = rtnetlink_create(RTNLGRP_LINK, pf, &rtn_change); + rtn = rtnetlink_create(RTNLGRP_LINK, rtnetlink_link_parse_cb, + &rtn_change); } return rtnetlink_notifier_register(rtn, notifier, nf, aux);