chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'branchpoint-5.1' into release
[disorder]
/
server
/
schedule.c
diff --git
a/server/schedule.c
b/server/schedule.c
index f1b20a123d96433188d70bef0286f60fcf8406c5..219fc14b50de3f74179d9c0af61d4c713ef5e69c 100644
(file)
--- a/
server/schedule.c
+++ b/
server/schedule.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* This file is part of DisOrder
- * Copyright (C) 2008 Richard Kettlewell
+ * Copyright (C) 2008
-2010
Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-471,14
+471,12
@@
static int schedule_lookup(const char *id,
static int schedule_trigger(ev_source *ev,
const struct timeval attribute((unused)) *now,
void *u) {
static int schedule_trigger(ev_source *ev,
const struct timeval attribute((unused)) *now,
void *u) {
- const char *
action, *
id = u;
+ const char *id = u;
struct kvp *actiondata = schedule_get(id);
int n;
if(!actiondata)
return 0;
struct kvp *actiondata = schedule_get(id);
int n;
if(!actiondata)
return 0;
- /* schedule_get() enforces these being present */
- action = kvp_get(actiondata, "action");
/* Look up the action */
n = schedule_lookup(id, actiondata);
if(n < 0)
/* Look up the action */
n = schedule_lookup(id, actiondata);
if(n < 0)