diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-09 17:28:48 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 22:37:31 +0100 |
commit | a8c48bb76f291c673438d2061753d05a0d9b3276 (patch) | |
tree | aa392be05e955ad5684f2d35463fd45380070780 /bgpd/bgp_advertise.c | |
parent | 6c9463d3f240f79fd46665c3b21e5152e51804f5 (diff) | |
download | quagga-a8c48bb76f291c673438d2061753d05a0d9b3276.tar.bz2 quagga-a8c48bb76f291c673438d2061753d05a0d9b3276.tar.xz |
bgp: move cleanup fifo code
This patch started while looking at the compiler aliasing warnings
from FIFO_HEAD() in BGP. Then I realized the FIFO code was only
being used in BGP, so it made sense to move it from zebra to
BGP. In the process convert from macro's to inline and add more
type safety.
Diffstat (limited to 'bgpd/bgp_advertise.c')
-rw-r--r-- | bgpd/bgp_advertise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c index 87eb7ac7..4163ab96 100644 --- a/bgpd/bgp_advertise.c +++ b/bgpd/bgp_advertise.c @@ -263,7 +263,7 @@ bgp_adj_out_set (struct bgp_node *rn, struct peer *peer, struct prefix *p, /* Add new advertisement to advertisement attribute list. */ bgp_advertise_add (adv->baa, adv); - FIFO_ADD (&peer->sync[afi][safi]->update, &adv->fifo); + FIFO_ADD (&peer->sync[afi][safi]->update, adv); } void @@ -297,7 +297,7 @@ bgp_adj_out_unset (struct bgp_node *rn, struct peer *peer, struct prefix *p, adv->adj = adj; /* Add to synchronization entry for withdraw announcement. */ - FIFO_ADD (&peer->sync[afi][safi]->withdraw, &adv->fifo); + FIFO_ADD (&peer->sync[afi][safi]->withdraw, adv); /* Schedule packet write. */ BGP_WRITE_ON (peer->t_write, bgp_write, peer->fd); |