Use a real struct
There's no usage of these structures as a tuple, and get<0> isn't very
descriptive. Replace them with a struct.
Change-Id: I7705a14fe1486c9398fd4bbc426f3c8208060c8e
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/snmp_notification.cpp b/snmp_notification.cpp
index cf1aa69..9953038 100644
--- a/snmp_notification.cpp
+++ b/snmp_notification.cpp
@@ -134,8 +134,8 @@
for (const auto& object : objectList)
{
- if (!addPDUVar(*pdu, std::get<0>(object), std::get<1>(object),
- std::get<2>(object), std::get<3>(object)))
+ if (!addPDUVar(*pdu, object.oid, object.oid_len, object.type,
+ object.value))
{
lg2::error("Failed to add the SNMP var");
snmp_free_pdu(pdu);