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 8665ec9..45d913f 100644
--- a/plop.c
+++ b/plop.c
@@ -13,7 +13,6 @@
#include <lauxlib.h>
#include <lua.h>
-#include <lualib.h>
#include "http.h"
#include "request.h"
@@ -104,7 +103,7 @@ int handle_client(lua_State * L, struct pollfd * pfd, struct request ** request,
return -1; // TODO: Handle errors properly
}
- if (-1 == parse_request(pfd->fd, request))
+ if (-1 == parse_request(L, pfd->fd, request))
{
respond_only_status(pfd->fd, STATUS_BAD_REQUEST);
return -1; // TODO: Handle errors properly
@@ -150,7 +149,7 @@ int handle_client(lua_State * L, struct pollfd * pfd, struct request ** request,
if (NULL != *request)
{
- free_request(*request);
+ free_request(L, *request);
*request = NULL;
}