summaryrefslogtreecommitdiff
path: root/source4/lib/events
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-08-01 17:31:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:15 -0500
commit6f0e5b59538b99decc186e899bef65d4c02e41bb (patch)
tree2b207200abc03024ed27673c42829e682683b292 /source4/lib/events
parent457261e2a2e2a1a5d9c245170713e37784497ab5 (diff)
downloadsamba-6f0e5b59538b99decc186e899bef65d4c02e41bb.tar.gz
samba-6f0e5b59538b99decc186e899bef65d4c02e41bb.tar.bz2
samba-6f0e5b59538b99decc186e899bef65d4c02e41bb.zip
r8886: Exchange the arguments of timeval_compare, this makes it behave like strcmp.
Volker (This used to be commit 6f5bd7602155413029de32295d2639c4073ad4d8)
Diffstat (limited to 'source4/lib/events')
-rw-r--r--source4/lib/events/events_standard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/events/events_standard.c b/source4/lib/events/events_standard.c
index 16c9464fd0..810e8bbca3 100644
--- a/source4/lib/events/events_standard.c
+++ b/source4/lib/events/events_standard.c
@@ -311,7 +311,8 @@ static struct timed_event *std_event_add_timed(struct event_context *ev, TALLOC_
for (cur_te = std_ev->timed_events; cur_te; cur_te = cur_te->next) {
/* if the new event comes before the current one break */
if (!timeval_is_zero(&cur_te->next_event) &&
- timeval_compare(&cur_te->next_event, &te->next_event) < 0) {
+ timeval_compare(&te->next_event,
+ &cur_te->next_event) < 0) {
break;
}