summaryrefslogtreecommitdiff
path: root/source4/lib/events
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-08-01 00:34:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:14 -0500
commit5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d (patch)
treeb878d0d6b750a25f3b3b5eab12acdf32697aea44 /source4/lib/events
parent555eee1456737abacbe59db1d1bb82370507f031 (diff)
downloadsamba-5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d.tar.gz
samba-5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d.tar.bz2
samba-5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d.zip
r8875: Rename timeval_diff to timeval_until and revert the arguments. timeval_diff is
not strictly a subtraction function, there can't be negative timevals. Volker (This used to be commit 525d75dd24f6a8810f1ed2043d170c70b060f1f0)
Diffstat (limited to 'source4/lib/events')
-rw-r--r--source4/lib/events/events_standard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/events/events_standard.c b/source4/lib/events/events_standard.c
index 5a64a42b28..16c9464fd0 100644
--- a/source4/lib/events/events_standard.c
+++ b/source4/lib/events/events_standard.c
@@ -488,7 +488,7 @@ static int std_event_loop_once(struct event_context *ev)
/* work out the right timeout for all timed events */
if (std_ev->timed_events) {
struct timeval t = timeval_current();
- tval = timeval_diff(&std_ev->timed_events->next_event, &t);
+ tval = timeval_until(&t, &std_ev->timed_events->next_event);
if (timeval_is_zero(&tval)) {
std_event_loop_timer(ev);
return 0;