summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_advertise.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-04-21 18:17:45 +0200
committerDavid Lamparter <equinox@diac24.net>2019-04-27 19:33:45 +0200
commita274fef86899e1907b81f3c28bf5e3f978eea6ad (patch)
treefc519b40def7b4701c392603fef7bb76a3adabc0 /bgpd/bgp_advertise.c
parentisisd: replace dict_* with DECLARE_RBTREE (diff)
downloadfrr-a274fef86899e1907b81f3c28bf5e3f978eea6ad.tar.xz
frr-a274fef86899e1907b81f3c28bf5e3f978eea6ad.zip
bgpd: replace ADV_FIFO with DECLARE_LIST
The FIFO_* stuff in lib/fifo.h is no different from a simple unsorted list. Just use DECLARE_LIST here so we can get rid of FIFO_*. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_advertise.c')
-rw-r--r--bgpd/bgp_advertise.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c
index 05eeeca15..c9f68d037 100644
--- a/bgpd/bgp_advertise.c
+++ b/bgpd/bgp_advertise.c
@@ -241,9 +241,9 @@ void bgp_sync_init(struct peer *peer)
FOREACH_AFI_SAFI (afi, safi) {
sync = XCALLOC(MTYPE_BGP_SYNCHRONISE,
sizeof(struct bgp_synchronize));
- BGP_ADV_FIFO_INIT(&sync->update);
- BGP_ADV_FIFO_INIT(&sync->withdraw);
- BGP_ADV_FIFO_INIT(&sync->withdraw_low);
+ bgp_adv_fifo_init(&sync->update);
+ bgp_adv_fifo_init(&sync->withdraw);
+ bgp_adv_fifo_init(&sync->withdraw_low);
peer->sync[afi][safi] = sync;
}
}