summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-12-13 10:58:55 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-12-14 10:43:53 -0500
commita35bb96dee99fbadb4f03395ad34d657b3d5e110 (patch)
tree3fd7952f50b7f2611f344f1738457fa1c8e1ae4b
parentb8ca17c230a1c324e34f96c61ccac3ef7357be8e (diff)
ospf6d: Don't assign to values that are never read
offset and offsetlen are never used without reassigning in the code. So comment out the assignments and in case we want to start using the code for snmp changes in the future. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--ospf6d/ospf6_snmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ospf6d/ospf6_snmp.c b/ospf6d/ospf6_snmp.c
index c148107449..a448645960 100644
--- a/ospf6d/ospf6_snmp.c
+++ b/ospf6d/ospf6_snmp.c
@@ -914,7 +914,7 @@ static u_char *ospfv3WwLsdbEntry(struct variable *v, oid *name, size_t *length,
if (len)
id = htonl(*offset);
offset += len;
- offsetlen -= len;
+ //offsetlen -= len; // Add back in if we need it again
if (exact) {
if (v->magic & OSPFv3WWASTABLE) {
@@ -1080,8 +1080,8 @@ static u_char *ospfv3IfEntry(struct variable *v, oid *name, size_t *length,
len = (offsetlen < 1 ? 0 : 1);
if (len)
instid = *offset;
- offset += len;
- offsetlen -= len;
+ //offset += len; // Add back in if we ever start using again
+ //offsetlen -= len;
if (exact) {
oi = ospf6_interface_lookup_by_ifindex(ifindex);
@@ -1241,8 +1241,8 @@ static u_char *ospfv3NbrEntry(struct variable *v, oid *name, size_t *length,
len = (offsetlen < 1 ? 0 : 1);
if (len)
rtrid = htonl(*offset);
- offset += len;
- offsetlen -= len;
+ //offset += len; // Add back in if we ever start looking at data
+ //offsetlen -= len;
if (exact) {
oi = ospf6_interface_lookup_by_ifindex(ifindex);