summaryrefslogtreecommitdiff
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 20:16:59 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 20:34:35 +0200
commit4f4060f6abbfa004e0eb63b7c447776cc74c8d66 (patch)
treedb67b768f3c17767dc6aff86e17da01590b26df8 /ospfd/ospf_snmp.c
parentf70247febe1e61bb77f9ba318a7dea55491d0b84 (diff)
*: fix clang-6 SA warnings
I don't see these in CI, but my local clang-6 does emit warnings for these. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 19d2e6a952..755634a2f1 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -995,7 +995,6 @@ static struct ospf_lsa *ospfLsdbLookup(struct variable *v, oid *name,
if (len <= 0)
type_next = 1;
else {
- len = 1;
type_next = 0;
*type = *offset;
}