zebra: Fix up some code formatting issues.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-02-23 07:50:23 -05:00
parent 783fc3cd45
commit 27b136bd58
2 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,7 @@
DEFINE_MTYPE(ZEBRA, ZEBRA_NS, "Zebra Name Space") DEFINE_MTYPE(ZEBRA, ZEBRA_NS, "Zebra Name Space")
static __inline int static inline int
zebra_ns_table_entry_compare(const struct zebra_ns_table *e1, zebra_ns_table_entry_compare(const struct zebra_ns_table *e1,
const struct zebra_ns_table *e2); const struct zebra_ns_table *e2);
@ -43,7 +43,7 @@ RB_GENERATE(zebra_ns_table_head, zebra_ns_table, zebra_ns_table_entry,
static struct zebra_ns *dzns; static struct zebra_ns *dzns;
static __inline int static inline int
zebra_ns_table_entry_compare(const struct zebra_ns_table *e1, zebra_ns_table_entry_compare(const struct zebra_ns_table *e1,
const struct zebra_ns_table *e2) const struct zebra_ns_table *e2)
{ {
@ -127,6 +127,7 @@ struct route_table *zebra_ns_get_table(struct zebra_ns *zns,
static void zebra_ns_free_table(struct zebra_ns_table *znst) static void zebra_ns_free_table(struct zebra_ns_table *znst)
{ {
void *table_info; void *table_info;
rib_close_table(znst->table); rib_close_table(znst->table);
table_info = znst->table->info; table_info = znst->table->info;

View File

@ -229,7 +229,8 @@ static int zebra_vrf_disable(struct vrf *vrf)
struct route_node *rnode; struct route_node *rnode;
rib_dest_t *dest; rib_dest_t *dest;
for (ALL_LIST_ELEMENTS(zebrad.mq->subq[i], lnode, nnode, rnode)) { for (ALL_LIST_ELEMENTS(zebrad.mq->subq[i],
lnode, nnode, rnode)) {
dest = rib_dest_from_rnode(rnode); dest = rib_dest_from_rnode(rnode);
if (dest && rib_dest_vrf(dest) == zvrf) { if (dest && rib_dest_vrf(dest) == zvrf) {
route_unlock_node(rnode); route_unlock_node(rnode);