summaryrefslogtreecommitdiff
path: root/zebra/zebra_snmp.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2017-09-17 19:23:16 -0400
committerGitHub <noreply@github.com>2017-09-17 19:23:16 -0400
commita7dd519b58c9f68d0b74bd6fb5daaf88e84ece63 (patch)
treef92c696d8b17e153953d0c3123d03bc7e41c09f3 /zebra/zebra_snmp.c
parentaf34a65a62efc13310facf054ac388d45e9c2e01 (diff)
parenta2addae8fe172f04f4d8ac99aa123a7d2dd64604 (diff)
Merge pull request #1188 from opensourcerouting/foreach_indentation
*: use clang's 'ForEachMacros' format style option
Diffstat (limited to 'zebra/zebra_snmp.c')
-rw-r--r--zebra/zebra_snmp.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/zebra/zebra_snmp.c b/zebra/zebra_snmp.c
index 9ac24c53ed..48218effd1 100644
--- a/zebra/zebra_snmp.c
+++ b/zebra/zebra_snmp.c
@@ -155,7 +155,7 @@ 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) {
+ RNODE_FOREACH_RE (rn, re) {
result++;
}
@@ -183,7 +183,7 @@ 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) {
+ RNODE_FOREACH_RE (rn, re) {
result++;
}
@@ -369,8 +369,7 @@ static void get_fwtable_route_node(struct variable *v, oid objid[],
return;
for (*np = route_top(table); *np; *np = route_next(*np)) {
if (!in_addr_cmp(&(*np)->p.u.prefix, (u_char *)&dest)) {
- RNODE_FOREACH_RE(*np, *re)
- {
+ RNODE_FOREACH_RE (*np, *re) {
if (!in_addr_cmp((u_char *)&(*re)
->nexthop->gate
.ipv4,
@@ -390,14 +389,13 @@ 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) {
+ 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 */
- RNODE_FOREACH_RE(np2, re2)
- {
+ RNODE_FOREACH_RE (np2, re2) {
int proto2, policy2;
proto2 = proto_trans(re2->type);