]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: lua: get rid of the last two "*hs" for hlua_smp
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:15:40 +0000 (11:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:23:23 +0000 (11:23 +0200)
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

index 75395c6bebaf917328d212226c00ef6af5dfc5f1..c8a0cc5cd82cff9afefc71aeee1d95bb1ba789c8 100644 (file)
@@ -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);