summaryrefslogtreecommitdiff
path: root/lib/agentx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/agentx.c b/lib/agentx.c
index 11d5c9385d..f7b124f25b 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -86,7 +86,8 @@ agentx_events_update(void)
snmp_select_info (&maxfd, &fds, &timeout, &block);
if (!block)
- timeout_thr = thread_add_timer_tv (agentx_tm, agentx_timeout, NULL, &timeout);
+ timeout_thr = thread_add_timer_tv(agentx_tm, agentx_timeout, NULL,
+ &timeout, NULL);
ln = listhead (events);
thr = ln ? listgetdata (ln) : NULL;
@@ -114,7 +115,7 @@ agentx_events_update(void)
else if (FD_ISSET (fd, &fds))
{
struct listnode *newln;
- thr = thread_add_read (agentx_tm, agentx_read, NULL, fd);
+ thr = thread_add_read(agentx_tm, agentx_read, NULL, fd, NULL);
newln = listnode_add_before (events, ln, thr);
thr->arg = newln;
}