summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-07-17 21:26:02 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-07-17 21:26:02 +0200
commitc14777c6bfd0a446c85243d3a9835054a259c276 (patch)
tree2021f7d89a6046f81ff1f44d256ecff28282568f /ospfd/ospf_snmp.c
parentMerge pull request #826 from qlyoung/rm-vtyoutln (diff)
downloadfrr-c14777c6bfd0a446c85243d3a9835054a259c276.tar.xz
frr-c14777c6bfd0a446c85243d3a9835054a259c276.zip
*: reindent pt. 2
w/ clang 5 * reflow comments * struct members go 1 per line * binpack algo was adjusted
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 6a352380b..a8b702719 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -872,7 +872,9 @@ static u_char *ospfStubAreaEntry(struct variable *v, oid *name, size_t *length,
return SNMP_INTEGER(SNMP_VALID);
break;
case OSPFSTUBMETRICTYPE: /* 5 */
-/* OSPF Metric type. */
+ /* OSPF Metric type. */
+ /* $FRR indent$ */
+ /* clang-format off */
#define OSPF_ospfMetric 1
#define OSPF_comparableCost 2
#define OSPF_nonComparable 3
@@ -2100,7 +2102,8 @@ static struct ospf_neighbor *ospf_snmp_nbr_lookup(struct ospf *ospf,
for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi)) {
for (rn = route_top(oi->nbrs); rn; rn = route_next(rn))
- if ((nbr = rn->info) != NULL && nbr != oi->nbr_self
+ if ((nbr = rn->info) != NULL
+ && nbr != oi->nbr_self
/* If EXACT match is needed, provide ALL entry found
&& nbr->state != NSM_Down
*/