]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: lua: get rid of the last "*ht" for struct hlua_txn.
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:14:06 +0000 (11:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:14:06 +0000 (11:14 +0200)
All other ones are called "htxn", call it similarly in hlua_http_new(),
this will make copy-paste safer.

src/hlua.c

index 186f9dc254f0a46a255759b596a358fe4bed09b9..266a8b74d398eb9b596829c73189a8536086d765 100644 (file)
@@ -2921,7 +2921,7 @@ __LJMP static struct hlua_txn *hlua_checkhttp(lua_State *L, int ud)
  */
 static int hlua_http_new(lua_State *L, struct hlua_txn *txn)
 {
-       struct hlua_txn *ht;
+       struct hlua_txn *htxn;
 
        /* Check stack size. */
        if (!lua_checkstack(L, 3))
@@ -2932,12 +2932,12 @@ static int hlua_http_new(lua_State *L, struct hlua_txn *txn)
         * same than the TXN object.
         */
        lua_newtable(L);
-       ht = lua_newuserdata(L, sizeof(*ht));
+       htxn = lua_newuserdata(L, sizeof(*htxn));
        lua_rawseti(L, -2, 0);
 
-       ht->s = txn->s;
-       ht->p = txn->p;
-       ht->l7 = txn->l7;
+       htxn->s = txn->s;
+       htxn->p = txn->p;
+       htxn->l7 = txn->l7;
 
        /* Pop a class session metatable and affect it to the table. */
        lua_rawgeti(L, LUA_REGISTRYINDEX, class_http_ref);