summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/events.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/events.c b/lib/events.c
index bb18f49..ff4b7ce 100644
--- a/lib/events.c
+++ b/lib/events.c
@@ -104,9 +104,8 @@ static void events_dispatch(struct events *events, const fd_set *rfds,
const fd_set *wfds, const fd_set *efds)
{
struct event_fd *event;
- struct event_fd *next;
- list_for_each_entry_safe(event, next, &events->events, list) {
+ list_for_each_entry(event, &events->events, list) {
if (event->type == EVENT_READ &&
FD_ISSET(event->fd, rfds))
event->callback(event->priv);