mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
CLEANUP: lua: get rid of the last "*ht" for struct hlua_txn.
All other ones are called "htxn", call it similarly in hlua_http_new(), this will make copy-paste safer.
This commit is contained in:
parent
b2ccb5644b
commit
9a8ad86648
10
src/hlua.c
10
src/hlua.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user