From 779b3a4e083d05f24ae9a16fa71c81e6cd8b14c1 Mon Sep 17 00:00:00 2001 From: Rui Guo Date: Sat, 6 Jun 2009 15:29:17 +0800 Subject: [PATCH] Misc fix 1. Fix a warning about implicit const type cast. 2. Fix the initialization of ScriptFuncs --- src/lua.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lua.c b/src/lua.c index bc79eda..c734653 100644 --- a/src/lua.c +++ b/src/lua.c @@ -557,7 +557,7 @@ screen_exec_command(lua_State *L) command = luaL_checklstring(L, 1, &len); if (command) - RcLine(command, len); + RcLine((char *)command, len); return 0; } @@ -766,10 +766,7 @@ LuaCommandExecuted(const char *command, const char **args, int argc) struct ScriptFuncs LuaFuncs = { - LuaInit, - LuaFinit, LuaForeWindowChanged, - LuaSource, LuaProcessCaption, LuaCommandExecuted }; -- 2.11.4.GIT