diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-11-07 17:43:44 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-07 17:43:44 +0100 |
commit | 841d18ab2ebe3538ece9679972adcbbb9f563a64 (patch) | |
tree | bbdb81e184a695ccf128aed6f74bb08a7f81d50a /bgpd/rfapi | |
parent | Merge pull request #7462 from qlyoung/fix-misc-doc-issues (diff) | |
download | frr-841d18ab2ebe3538ece9679972adcbbb9f563a64.tar.xz frr-841d18ab2ebe3538ece9679972adcbbb9f563a64.zip |
bgpd: Fix rfapi indentation issues with a for loop
I am not even sure how this compiles or what it is supposed
to do from a c perspective :(
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r-- | bgpd/rfapi/rfapi.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/bgpd/rfapi/rfapi.c b/bgpd/rfapi/rfapi.c index 2d81a6ce6..297c353c8 100644 --- a/bgpd/rfapi/rfapi.c +++ b/bgpd/rfapi/rfapi.c @@ -3688,20 +3688,16 @@ static void rfapi_print_exported(struct bgp *bgp) if (!table) continue; fprintf(stderr, "%s: encap destn=%p\n", __func__, destn); - for (dest = bgp_table_top(table)) - ; - dest; - dest = bgp_route_next(dest)) - { - bpi = bgp_dest_get_bgp_path_info(dest); - if (!bpi) - continue; - fprintf(stderr, "%s: dest=%p\n", __func__, dest); - for (; bpi; bpi = bpi->next) { - rfapiPrintBi((void *)2, - bpi); /* 2 => stderr */ - } - } + for (dest = bgp_table_top(table); dest; + dest = bgp_route_next(dest)) { + bpi = bgp_dest_get_bgp_path_info(dest); + if (!bpi) + continue; + fprintf(stderr, "%s: dest=%p\n", __func__, dest); + for (; bpi; bpi = bpi->next) { + rfapiPrintBi((void *)2, bpi); /* 2 => stderr */ + } + } } } #endif /* defined(DEBUG_RFAPI) */ |