summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 94b8bde..2e0320c 100644
--- a/main.c
+++ b/main.c
@@ -107,7 +107,8 @@ int main(int argc, char ** argv)
}
else
{
- if (-1 == plop_handle_client(plop.L, &events[i]))
+ struct connection * c = (struct connection *) events[i].data.ptr;
+ if (-1 == plop_handle_client(plop.L, c))
{
return 7;
}