forked from Mirror/frr
bfdd, bgpd: clean up clang warnings
Clean up some clang compiler warnings. Signed-off-by: Mark Stapp <mjs@cisco.com>
This commit is contained in:
parent
d378275106
commit
2d42318625
|
@ -2518,7 +2518,7 @@ void sbfd_reflector_free(const uint32_t discr)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sbfd_reflector_flush()
|
void sbfd_reflector_flush(void)
|
||||||
{
|
{
|
||||||
sbfd_discr_iterate(_sbfd_reflector_free, NULL);
|
sbfd_discr_iterate(_sbfd_reflector_free, NULL);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -3542,7 +3542,6 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
|
||||||
struct bmp_targets *bt;
|
struct bmp_targets *bt;
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
struct bmp_imported_bgp *bib;
|
struct bmp_imported_bgp *bib;
|
||||||
int ret = 0;
|
|
||||||
struct stream *s = bmp_peerstate(bgp->peer_self, withdraw);
|
struct stream *s = bmp_peerstate(bgp->peer_self, withdraw);
|
||||||
struct bmp *bmp;
|
struct bmp *bmp;
|
||||||
afi_t afi;
|
afi_t afi;
|
||||||
|
@ -3553,8 +3552,8 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
|
||||||
|
|
||||||
if (bmpbgp) {
|
if (bmpbgp) {
|
||||||
frr_each (bmp_targets, &bmpbgp->targets, bt) {
|
frr_each (bmp_targets, &bmpbgp->targets, bt) {
|
||||||
ret = bmp_bgp_attribute_updated_instance(bt, &bmpbgp->vrf_state, bgp,
|
bmp_bgp_attribute_updated_instance(bt, &bmpbgp->vrf_state, bgp,
|
||||||
withdraw, s);
|
withdraw, s);
|
||||||
if (withdraw)
|
if (withdraw)
|
||||||
continue;
|
continue;
|
||||||
frr_each (bmp_session, &bt->sessions, bmp) {
|
frr_each (bmp_session, &bt->sessions, bmp) {
|
||||||
|
@ -3575,8 +3574,8 @@ static int bmp_bgp_attribute_updated(struct bgp *bgp, bool withdraw)
|
||||||
frr_each (bmp_imported_bgps, &bt->imported_bgps, bib) {
|
frr_each (bmp_imported_bgps, &bt->imported_bgps, bib) {
|
||||||
if (bgp_lookup_by_name(bib->name) != bgp)
|
if (bgp_lookup_by_name(bib->name) != bgp)
|
||||||
continue;
|
continue;
|
||||||
ret += bmp_bgp_attribute_updated_instance(bt, &bib->vrf_state, bgp,
|
bmp_bgp_attribute_updated_instance(bt, &bib->vrf_state, bgp,
|
||||||
withdraw, s);
|
withdraw, s);
|
||||||
if (withdraw)
|
if (withdraw)
|
||||||
continue;
|
continue;
|
||||||
frr_each (bmp_session, &bt->sessions, bmp) {
|
frr_each (bmp_session, &bt->sessions, bmp) {
|
||||||
|
|
Loading…
Reference in a new issue