dovecot-2.2: lib: Fixed earlier timeout_add_absolute() commit.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 30 21:17:47 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/df53b5ccc2ba
changeset: 17856:df53b5ccc2ba
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 01 00:17:09 2014 +0300
description:
lib: Fixed earlier timeout_add_absolute() commit.
I removed too much from Stephan's patch.
diffstat:
src/lib/ioloop.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r e45dda2d7cd6 -r df53b5ccc2ba src/lib/ioloop.c
--- a/src/lib/ioloop.c Wed Oct 01 00:13:36 2014 +0300
+++ b/src/lib/ioloop.c Wed Oct 01 00:17:09 2014 +0300
@@ -239,14 +239,16 @@
}
#undef timeout_add_absolute
-struct timeout *timeout_add_absolute(const struct timeval *time,
- unsigned int source_linenum,
- timeout_callback_t *callback, void *context)
+struct timeout *
+timeout_add_absolute(const struct timeval *time,
+ unsigned int source_linenum,
+ timeout_callback_t *callback, void *context)
{
struct timeout *timeout;
timeout = timeout_add_common(source_linenum, callback, context);
timeout->one_shot = TRUE;
+ timeout->next_run = *time;
priorityq_add(timeout->ioloop->timeouts, &timeout->item);
return timeout;
More information about the dovecot-cvs
mailing list