X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/067eeb5f497179a9edbfe83bc7f1fb790dd2a9cc..fdbb860d0642a19c29665fadab6b1a1d6229d946:/server/schedule.c diff --git a/server/schedule.c b/server/schedule.c index c2cdb6d..4f0b34e 100644 --- a/server/schedule.c +++ b/server/schedule.c @@ -208,6 +208,7 @@ static int schedule_init_tid(ev_source *ev, if(priority && !strcmp(priority, "junk")) { /* Junk actions that are in the past are discarded during startup */ /* TODO recurring events should be handled differently here */ + info("junk event %s is in the past, discarding", id); if(cdel(cursor)) goto deadlocked; /* Skip this time */ @@ -453,7 +454,7 @@ static int schedule_lookup(const char *id, int n; /* Look up the action */ - n = TABLE_FIND(schedule_actions, typeof(schedule_actions[0]), name, action); + n = TABLE_FIND(schedule_actions, name, action); if(n < 0) { error(0, "scheduled event %s: unrecognized action '%s'", id, action); return -1;