smux: remove `tick` argument from smux_trap()
smux_trap() contains an argument whose use appears to be to set
sysUpTime.0/timestamp field in SNMP trap. However, this value is not
used in smux_trap(). Moreover, it is expected that this field is the
value of sysUpTime.0 when the trap was sent and not any other time
related to the trap. To avoid any confusion, we remove this field from
the signature of the function.
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 739dcae..409153b 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -2616,7 +2616,7 @@
index, IN_ADDR_SIZE + 1,
ospfNbrTrapList,
sizeof ospfNbrTrapList / sizeof (struct trap_object),
- time (NULL), NBRSTATECHANGE);
+ NBRSTATECHANGE);
}
void
@@ -2633,7 +2633,7 @@
index, IN_ADDR_SIZE + 1,
ospfVirtNbrTrapList,
sizeof ospfVirtNbrTrapList / sizeof (struct trap_object),
- time (NULL), VIRTNBRSTATECHANGE);
+ VIRTNBRSTATECHANGE);
}
void
@@ -2652,7 +2652,7 @@
index, IN_ADDR_SIZE + 1,
ospfIfTrapList,
sizeof ospfIfTrapList / sizeof (struct trap_object),
- time (NULL), IFSTATECHANGE);
+ IFSTATECHANGE);
}
void
@@ -2669,7 +2669,7 @@
index, IN_ADDR_SIZE + 1,
ospfVirtIfTrapList,
sizeof ospfVirtIfTrapList / sizeof (struct trap_object),
- time (NULL), VIRTIFSTATECHANGE);
+ VIRTIFSTATECHANGE);
}
/* Register OSPF2-MIB. */
void