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/lib/agentx.c b/lib/agentx.c
index 9cf6de5..2358581 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -125,7 +125,7 @@
smux_trap (const oid *name, size_t namelen,
const oid *iname, size_t inamelen,
const struct trap_object *trapobj, size_t trapobjlen,
- unsigned int tick, u_char sptrap)
+ u_char sptrap)
{
return 1;
}
diff --git a/lib/smux.c b/lib/smux.c
index 2937005..38c7018 100644
--- a/lib/smux.c
+++ b/lib/smux.c
@@ -972,7 +972,7 @@
smux_trap (const oid *name, size_t namelen,
const oid *iname, size_t inamelen,
const struct trap_object *trapobj, size_t trapobjlen,
- unsigned int tick, u_char sptrap)
+ u_char sptrap)
{
unsigned int i;
u_char buf[BUFSIZ];
diff --git a/lib/smux.h b/lib/smux.h
index 83ae56c..78460e6 100644
--- a/lib/smux.h
+++ b/lib/smux.h
@@ -78,7 +78,7 @@
int, size_t *, WriteMethod **);
extern int smux_trap (const oid *, size_t, const oid *, size_t,
const struct trap_object *,
- size_t, unsigned int, u_char);
+ size_t, u_char);
extern int oid_compare (oid *, int, oid *, int);
extern void oid2in_addr (oid [], int, struct in_addr *);