coding convention

This commit is contained in:
Henri DF
2016-02-28 21:14:46 -08:00
parent 1c04ed7874
commit 55b2490314

View File

@@ -24,7 +24,8 @@ digwatch_formats::digwatch_formats(sinsp* inspector, lua_State *ls)
luaL_openlib(m_ls, "digwatch", ll_digwatch, 0); luaL_openlib(m_ls, "digwatch", ll_digwatch, 0);
} }
int digwatch_formats::formatter(lua_State *ls) { int digwatch_formats::formatter(lua_State *ls)
{
string format = luaL_checkstring(ls, 1); string format = luaL_checkstring(ls, 1);
sinsp_evt_formatter* formatter; sinsp_evt_formatter* formatter;
try try
@@ -43,7 +44,8 @@ int digwatch_formats::formatter(lua_State *ls) {
return 1; return 1;
} }
int digwatch_formats::format_event (lua_State *ls) { int digwatch_formats::format_event (lua_State *ls)
{
string line; string line;
if (!lua_islightuserdata(ls, -1) || !lua_islightuserdata(ls, -2)) { if (!lua_islightuserdata(ls, -1) || !lua_islightuserdata(ls, -2)) {