From 3e4fc2bf46493f35e919c567ed46d73cac1bbc52 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Wed, 1 Jan 2020 18:13:47 +0000 Subject: [PATCH] Prefix kiwmi_server methods with kiwmi_server --- kiwmi/luak.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kiwmi/luak.c b/kiwmi/luak.c index 2c5aed5..d699c38 100644 --- a/kiwmi/luak.c +++ b/kiwmi/luak.c @@ -184,7 +184,7 @@ kiwmi_view_register(lua_State *L) } static int -l_on(lua_State *L) +l_kiwmi_server_on(lua_State *L) { luaL_checkudata(L, 1, "kiwmi_server"); // server luaL_checktype(L, 2, LUA_TSTRING); // type @@ -330,7 +330,7 @@ l_kiwmi_server_quit(lua_State *L) } static int -l_view_under_cursor(lua_State *L) +l_kiwmi_server_view_under_cursor(lua_State *L) { struct kiwmi_server *server = *(struct kiwmi_server **)luaL_checkudata(L, 1, "kiwmi_server"); @@ -362,9 +362,9 @@ l_view_under_cursor(lua_State *L) } static const luaL_Reg kiwmi_server_methods[] = { - {"on", l_on}, - {"quit", l_quit}, - {"view_under_cursor", l_view_under_cursor}, + {"on", l_kiwmi_server_on}, + {"quit", l_kiwmi_server_quit}, + {"view_under_cursor", l_kiwmi_server_view_under_cursor}, {NULL, NULL}, };