aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-18 23:22:48 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-18 23:22:48 +0200
commit0484f7e995e4caf92a7bd49aea8d73e64742478d (patch)
treee628fbddaf360c3e6eafc61907c900f9e0a34af6
parent2c150b53992212d1a90c623d8b7faa5907e31ea8 (diff)
downloadxK-0484f7e995e4caf92a7bd49aea8d73e64742478d.tar.gz
xK-0484f7e995e4caf92a7bd49aea8d73e64742478d.tar.xz
xK-0484f7e995e4caf92a7bd49aea8d73e64742478d.zip
Another fix for the legacy poller
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 9d26799..d10a115 100644
--- a/common.c
+++ b/common.c
@@ -1285,7 +1285,7 @@ poller_set (struct poller *self, int fd, short events,
new_entry->fd = fd;
new_entry->events = events;
- self->fds_info[self->len] = (struct poller_info) { dispatcher, data };
+ self->fds_info[index] = (struct poller_info) { dispatcher, data };
}
static void