diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-08-01 00:34:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:14 -0500 |
commit | 5bddfe7a1a094d86dffaa0f8a52c2e35d6453b2d (patch) | |
tree | b878d0d6b750a25f3b3b5eab12acdf32697aea44 /source4/gtk/common | |
parent | 555eee1456737abacbe59db1d1bb82370507f031 (diff) | |
download | samba-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/gtk/common')
-rw-r--r-- | source4/gtk/common/gtk_events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/gtk/common/gtk_events.c b/source4/gtk/common/gtk_events.c index faa99a780e..fdc6d55621 100644 --- a/source4/gtk/common/gtk_events.c +++ b/source4/gtk/common/gtk_events.c @@ -281,7 +281,7 @@ static struct timed_event *gtk_event_add_timed(struct event_context *ev, TALLOC_ te->additional_data = gtk_te; cur_tv = timeval_current(); - diff_tv = timeval_diff(&next_event, &cur_tv); + diff_tv = timeval_until(&cur_tv, &next_event); timeout = ((diff_tv.tv_usec+999)/1000)+(diff_tv.tv_sec*1000); gtk_te->te_id = g_timeout_add(timeout, gtk_event_timed_handler, te); |