From 7073c471a1d80eaba54e80f714268fcb9086407c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 6 Apr 2015 11:15:40 +0200 Subject: [PATCH] CLEANUP: lua: get rid of the last two "*hs" for hlua_smp The two last occurrences were in hlua_fetches_new() and hlua_converters_new(). Now they're called hsmp as in other places. --- src/hlua.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index 75395c6be..c8a0cc5cd 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -2698,7 +2698,7 @@ __LJMP static struct hlua_smp *hlua_checkfetches(lua_State *L, int ud) */ static int hlua_fetches_new(lua_State *L, struct hlua_txn *txn, int stringsafe) { - struct hlua_smp *hs; + struct hlua_smp *hsmp; /* Check stack size. */ if (!lua_checkstack(L, 3)) @@ -2709,13 +2709,13 @@ static int hlua_fetches_new(lua_State *L, struct hlua_txn *txn, int stringsafe) * transaction object. */ lua_newtable(L); - hs = lua_newuserdata(L, sizeof(*hs)); + hsmp = lua_newuserdata(L, sizeof(*hsmp)); lua_rawseti(L, -2, 0); - hs->s = txn->s; - hs->p = txn->p; - hs->l7 = txn->l7; - hs->stringsafe = stringsafe; + hsmp->s = txn->s; + hsmp->p = txn->p; + hsmp->l7 = txn->l7; + hsmp->stringsafe = stringsafe; /* Pop a class sesison metatable and affect it to the userdata. */ lua_rawgeti(L, LUA_REGISTRYINDEX, class_fetches_ref); @@ -2802,7 +2802,7 @@ __LJMP static struct hlua_smp *hlua_checkconverters(lua_State *L, int ud) */ static int hlua_converters_new(lua_State *L, struct hlua_txn *txn, int stringsafe) { - struct hlua_smp *hs; + struct hlua_smp *hsmp; /* Check stack size. */ if (!lua_checkstack(L, 3)) @@ -2813,13 +2813,13 @@ static int hlua_converters_new(lua_State *L, struct hlua_txn *txn, int stringsaf * same than the TXN object. */ lua_newtable(L); - hs = lua_newuserdata(L, sizeof(*hs)); + hsmp = lua_newuserdata(L, sizeof(*hsmp)); lua_rawseti(L, -2, 0); - hs->s = txn->s; - hs->p = txn->p; - hs->l7 = txn->l7; - hs->stringsafe = stringsafe; + hsmp->s = txn->s; + hsmp->p = txn->p; + hsmp->l7 = txn->l7; + hsmp->stringsafe = stringsafe; /* Pop a class session metatable and affect it to the table. */ lua_rawgeti(L, LUA_REGISTRYINDEX, class_converters_ref);