summaryrefslogtreecommitdiffstats
path: root/lib/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/event.c')
-rw-r--r--lib/event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/event.c b/lib/event.c
index 9b5870d..55a9c48 100644
--- a/lib/event.c
+++ b/lib/event.c
@@ -125,13 +125,13 @@ ev_schedule(event *e)
int
ev_run_list(event_list *l)
{
- node *n, *p;
+ node *n;
list tmp_list;
init_list(&tmp_list);
add_tail_list(&tmp_list, l);
init_list(l);
- WALK_LIST_DELSAFE(n, p, tmp_list)
+ WALK_LIST_FIRST(n, tmp_list)
{
event *e = SKIP_BACK(event, n, n);
ev_run(e);