svn commit: samba r20913 - in branches/SAMBA_3_0/source/lib: .
jra at samba.org
jra at samba.org
Fri Jan 19 20:00:45 GMT 2007
Author: jra
Date: 2007-01-19 20:00:44 +0000 (Fri, 19 Jan 2007)
New Revision: 20913
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20913
Log:
Fix the build.
Jeremy.
Modified:
branches/SAMBA_3_0/source/lib/events.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/events.c
===================================================================
--- branches/SAMBA_3_0/source/lib/events.c 2007-01-19 19:41:34 UTC (rev 20912)
+++ branches/SAMBA_3_0/source/lib/events.c 2007-01-19 20:00:44 UTC (rev 20913)
@@ -74,11 +74,12 @@
static void add_event_by_time(struct timed_event *te)
{
+ struct event_context *ctx = te->event_ctx;
struct timed_event *last_te, *cur_te;
/* Keep the list ordered by time. We must preserve this. */
last_te = NULL;
- for (cur_te = timed_events; cur_te; cur_te = cur_te->next) {
+ for (cur_te = ctx->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->when) &&
timeval_compare(&te->when, &cur_te->when) < 0) {
@@ -87,7 +88,7 @@
last_te = cur_te;
}
- DLIST_ADD_AFTER(timed_events, te, last_te);
+ DLIST_ADD_AFTER(ctx->timed_events, te, last_te);
}
/****************************************************************************
@@ -308,7 +309,7 @@
for (te = event_ctx->timed_events; te; te = te->next) {
if (strcmp(event_name, te->event_name) == 0) {
- DLIST_REMOVE(timed_events, te);
+ DLIST_REMOVE(event_ctx->timed_events, te);
te->when = when;
add_event_by_time(te);
return 1;
More information about the samba-cvs
mailing list