rename traceback function

This commit is contained in:
Daniel Poelzleithner 2022-03-17 02:29:23 +01:00
parent fb86124f30
commit 2b9de7d4c3
2 changed files with 2 additions and 3 deletions

View File

@ -448,7 +448,7 @@ printlogf0(lua_State *L,
/*
| Print a traceback of the error
*/
static int traceback (lua_State *L) {
static int l_traceback (lua_State *L) {
lua_getglobal(L, "debug");
lua_getfield(L, -1, "traceback");
lua_pushvalue(L, 1);
@ -2920,7 +2920,7 @@ main1( int argc, char *argv[] )
lsyncd_config_file,
lua_tostring( L, -1 )
);
traceback(L);
l_traceback(L);
exit( -1 );
}

View File

@ -4020,7 +4020,6 @@ end
function replaceCommand(cmd, data)
assert(type(data) == "table")
local getData = function(arg)
print(arg, data)
local rv = data[arg]
if rv ~= nil then
return rv