From a7ee645d23fe14b4cc3a7675965418fb56b430a3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 24 Feb 2016 15:05:46 -0500 Subject: [PATCH] bgpd: Fix function indirection when none is needed bgp_update_main was only called by bgp_update. bgp_update only called bgp_update_main. Signed-off-by: Donald Sharp Reivewed-by: Daniel Walton --- bgpd/bgp_route.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index ef2f07caf2..737e8e1110 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2154,11 +2154,11 @@ bgp_update_martian_nexthop (struct bgp *bgp, afi_t afi, safi_t safi, struct attr return ret; } -static int -bgp_update_main (struct peer *peer, struct prefix *p, u_int32_t addpath_id, - struct attr *attr, afi_t afi, safi_t safi, int type, - int sub_type, struct prefix_rd *prd, u_char *tag, - int soft_reconfig) +int +bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id, + struct attr *attr, afi_t afi, safi_t safi, int type, + int sub_type, struct prefix_rd *prd, u_char *tag, + int soft_reconfig) { int ret; int aspath_loop_count = 0; @@ -2516,15 +2516,6 @@ bgp_update_main (struct peer *peer, struct prefix *p, u_int32_t addpath_id, return 0; } -int -bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id, - struct attr *attr, afi_t afi, safi_t safi, int type, int sub_type, - struct prefix_rd *prd, u_char *tag, int soft_reconfig) -{ - return bgp_update_main (peer, p, addpath_id, attr, afi, safi, type, sub_type, - prd, tag, soft_reconfig); -} - int bgp_withdraw (struct peer *peer, struct prefix *p, u_int32_t addpath_id, struct attr *attr, afi_t afi, safi_t safi, int type, int sub_type, -- 2.39.5