add const modifier.
authorPeng Wu <alexepico@gmail.com>
Fri, 7 May 2010 04:55:13 +0000 (12:55 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 19 May 2010 02:09:33 +0000 (10:09 +0800)
lua/lua-ext-console.c
lua/lua-plugin.h

index 9490cc9..352f2af 100644 (file)
@@ -54,7 +54,7 @@ int print_lua_call_result(IBusEnginePlugin * plugin, size_t num){
 }
 
 int do_lua_call(IBusEnginePlugin * plugin, const char * command_name, const char * argument){
-  lua_command_t * command;
+  const lua_command_t * command;
   size_t num;
 
   g_return_if_fail(2 == strlen(command_name));
index 8116ae1..9ca3661 100644 (file)
@@ -22,8 +22,8 @@ typedef struct{
 } lua_command_candidate_t;
 
 typedef struct{
-  char * lua_function_name;
-  char * description;
+  const char * lua_function_name;
+  const char * description;
   /*< private, skip it, and register it into Special Table directly with * wildcard. >*/
   /*
    * list of input_trigger_strings;