mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
rename traceback function
This commit is contained in:
parent
fb86124f30
commit
2b9de7d4c3
4
lsyncd.c
4
lsyncd.c
@ -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 );
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user