diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-11 13:13:17 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-11 13:35:23 -0400 | 
| commit | 407c87a6c3b3282331b708a71a4392ac7d2aace4 (patch) | |
| tree | 09f68b5b3b66d0ed5a3b31064e565cc837c73075 /zebra/zebra_snmp.c | |
| parent | c9abf5584a4691818b4c76e59d569e67fb34314e (diff) | |
zebra: Fixup indentation
RNODE_FOREACH_RE... function calls were not properly being
indented when we switched over to the new format.  Let's fix
this issue.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_snmp.c')
| -rw-r--r-- | zebra/zebra_snmp.c | 15 | 
1 files changed, 9 insertions, 6 deletions
diff --git a/zebra/zebra_snmp.c b/zebra/zebra_snmp.c index 4d6ba566ca..9ac24c53ed 100644 --- a/zebra/zebra_snmp.c +++ b/zebra/zebra_snmp.c @@ -155,8 +155,9 @@ static u_char *ipFwNumber(struct variable *v, oid objid[], size_t *objid_len,  	/* Return number of routing entries. */  	result = 0;  	for (rn = route_top(table); rn; rn = route_next(rn)) -		RNODE_FOREACH_RE(rn, re) -	result++; +		RNODE_FOREACH_RE(rn, re) { +			result++; +		}  	return (u_char *)&result;  } @@ -182,8 +183,9 @@ static u_char *ipCidrNumber(struct variable *v, oid objid[], size_t *objid_len,  	/* Return number of routing entries. */  	result = 0;  	for (rn = route_top(table); rn; rn = route_next(rn)) -		RNODE_FOREACH_RE(rn, re) -	result++; +		RNODE_FOREACH_RE(rn, re) { +			result++; +		}  	return (u_char *)&result;  } @@ -388,8 +390,9 @@ static void get_fwtable_route_node(struct variable *v, oid objid[],  		/* Check destination first */  		if (in_addr_cmp(&np2->p.u.prefix, (u_char *)&dest) > 0) -			RNODE_FOREACH_RE(np2, re2) -		check_replace(np2, re2, np, re); +			RNODE_FOREACH_RE(np2, re2) { +				check_replace(np2, re2, np, re); +			}  		if (in_addr_cmp(&np2->p.u.prefix, (u_char *)&dest)  		    == 0) { /* have to look at each re individually */  | 
