]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: lua: hlua_channel_new() doesn't need the pointer to the session anymore
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2015 12:51:50 +0000 (13:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:41:47 +0000 (20:41 +0100)
Let's remove it now.

src/hlua.c

index 0b82e922aaf1a42b965e9650a043941e8a120431..048f38dece2e617441f691bac2211ba357a80140 100644 (file)
@@ -2062,7 +2062,7 @@ __LJMP static struct hlua_channel *hlua_checkchannel(lua_State *L, int ud)
  * 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;
 
@@ -2822,13 +2822,13 @@ static int hlua_txn_new(lua_State *L, struct session *s, struct proxy *p, void *
 
        /* 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);