* If the stask does not have a free slots, the function fails
* and returns 0;
*/
-static int hlua_channel_new(lua_State *L, struct session *s, struct channel *channel)
+static int hlua_channel_new(lua_State *L, struct channel *channel)
{
struct hlua_channel *chn;
/* Create the "req" field that contains the request channel object. */
lua_pushstring(L, "req");
- if (!hlua_channel_new(L, s, &s->req))
+ if (!hlua_channel_new(L, &s->req))
return 0;
lua_settable(L, -3);
/* Create the "res" field that contains the response channel object. */
lua_pushstring(L, "res");
- if (!hlua_channel_new(L, s, &s->res))
+ if (!hlua_channel_new(L, &s->res))
return 0;
lua_settable(L, -3);