From 1059e25a7b98d71ffc6eabb8f35d13d539d05d4a Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 29 Dec 2019 06:18:33 +0000 Subject: [PATCH] Avoid hiding global with parameter. #1834 --- ncat/ncat_lua.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ncat/ncat_lua.c b/ncat/ncat_lua.c index b5a430bf7..3e329e546 100644 --- a/ncat/ncat_lua.c +++ b/ncat/ncat_lua.c @@ -142,16 +142,16 @@ static void report(char *prefix) bye("%s: %s.", prefix, errormsg); } -static int traceback (lua_State *L) +static int traceback (lua_State *LL) { const char *msg; - msg = lua_tostring(L, 1); + msg = lua_tostring(LL, 1); if (msg) { - luaL_traceback(L, L, msg, 1); + luaL_traceback(LL, LL, msg, 1); } else { - if (!lua_isnoneornil(L, 1)) { /* is there an error object? */ - if (!luaL_callmeta(L, 1, "__tostring")) /* try its 'tostring' metamethod */ - lua_pushliteral(L, "(no error message)"); + if (!lua_isnoneornil(LL, 1)) { /* is there an error object? */ + if (!luaL_callmeta(LL, 1, "__tostring")) /* try its 'tostring' metamethod */ + lua_pushliteral(LL, "(no error message)"); } } return 1;