routing: hide notify_add and notify_del behind ROUTE_MPATH
Fixes a warn about unused routines without the option. Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
177f8b3294
commit
db4b40213a
@ -258,6 +258,7 @@ rib_lookup(uint32_t fibnum, const struct sockaddr *dst, uint32_t flags,
|
||||
return (nh);
|
||||
}
|
||||
|
||||
#ifdef ROUTE_MPATH
|
||||
static void
|
||||
notify_add(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src,
|
||||
route_notification_t *cb, void *cbdata) {
|
||||
@ -284,7 +285,6 @@ notify_del(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src,
|
||||
cb(rc, cbdata);
|
||||
}
|
||||
|
||||
#ifdef ROUTE_MPATH
|
||||
static void
|
||||
decompose_change_notification(struct rib_cmd_info *rc, route_notification_t *cb,
|
||||
void *cbdata)
|
||||
|
Loading…
Reference in New Issue
Block a user