summaryrefslogtreecommitdiffhomepage
path: root/plop.c
diff options
context:
space:
mode:
Diffstat (limited to 'plop.c')
-rw-r--r--plop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plop.c b/plop.c
index 057208a..3a438e6 100644
--- a/plop.c
+++ b/plop.c
@@ -195,10 +195,9 @@ int plop_handle_client(struct connection * c)
}
/// Accepts awaiting connections if any.
-/// \param efd File descriptor for epoll's context
/// \param server File descriptor for server socket
/// \return -1 if an error occured
-int plop_handle_server(const int efd, const int server)
+int plop_handle_server(const int server)
{
struct epoll_event e;
e.events = EPOLLIN | EPOLLOUT; // TODO: Add EPOLLHUP?
@@ -255,7 +254,7 @@ int plop_handle_server(const int efd, const int server)
connection->push = 1;
e.data.ptr = connection;
- if (-1 == epoll_ctl(efd, EPOLL_CTL_ADD, client, &e))
+ if (-1 == epoll_ctl(plop.efd, EPOLL_CTL_ADD, client, &e))
{
return -1;
}