Simplify epoll handling slightly

No need to allocate the epoll events array since it's static
in size anyway.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2013-07-23 02:09:13 +02:00
1 parent 9b5be13e62
commit 85da186489
2 files changed
+4 -13

No files matched your search

-3
View File
@@ -65,10 +65,7 @@ typedef struct uev_io {
/* Main libuev context type */
typedef struct {
int running;
int efd; /* For epoll() */
struct epoll_event *events;
LIST_HEAD(, uev_io) watchers;
} uev_t;