Conforming with the Event API update
This commit is contained in:
parent
2ec966dad3
commit
08b512c487
|
@ -88,7 +88,7 @@ static int _damon_init(DaMon * damon)
|
|||
_damon_refresh(damon);
|
||||
tv.tv_sec = damon->refresh;
|
||||
tv.tv_usec = 0;
|
||||
event_register_timeout(damon->event, tv,
|
||||
event_register_timeout(damon->event, &tv,
|
||||
(EventTimeoutFunc)_damon_refresh, damon);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -612,7 +612,7 @@ static int _probe(void)
|
|||
}
|
||||
tv.tv_sec = PROBE_REFRESH;
|
||||
tv.tv_usec = 0;
|
||||
if(event_register_timeout(event, tv, (EventTimeoutFunc)_probe_timeout,
|
||||
if(event_register_timeout(event, &tv, (EventTimeoutFunc)_probe_timeout,
|
||||
&probe) != 0)
|
||||
_probe_error("timeout", 0);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user