From 84c92002d25b7a498f9210356874dbe45a306e8a Mon Sep 17 00:00:00 2001 From: Donald Lee Date: Mon, 26 Jul 2021 23:35:17 +0800 Subject: [PATCH] lib: formatting Signed-off-by: Donald Lee --- doc/developer/scripting.rst | 14 +++++++------- lib/frrscript.c | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/doc/developer/scripting.rst b/doc/developer/scripting.rst index fa1c521fc6..7251bafb05 100644 --- a/doc/developer/scripting.rst +++ b/doc/developer/scripting.rst @@ -62,18 +62,18 @@ are respectively encapsulated in the following structures: .. code-block:: c struct frrscript { - /* Lua file name */ - char *name; + /* Lua file name */ + char *name; - /* hash of lua_function_states */ - struct hash *lua_function_hash; + /* hash of lua_function_states */ + struct hash *lua_function_hash; }; struct lua_function_state { - /* Lua function name */ - char *name; + /* Lua function name */ + char *name; - lua_State *L; + lua_State *L; }; diff --git a/lib/frrscript.c b/lib/frrscript.c index 59fce36c7a..3e1e184bc6 100644 --- a/lib/frrscript.c +++ b/lib/frrscript.c @@ -226,7 +226,8 @@ void *frrscript_get_result(struct frrscript *fs, const char *function_name, p = lua_to(lfs->L, 2); /* At the end, the Lua state should be same as it was at the start - * i.e. containing soley the returned table. */ + * i.e. containing soley the returned table. + */ assert(lua_gettop(lfs->L) == 1); assert(lua_istable(lfs->L, -1) == 1); -- 2.39.5