A couple more const fixes.
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Feb 2008 23:30:40 +0000 (23:30 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Feb 2008 23:30:40 +0000 (23:30 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24483 f5534014-38df-0310-8fa8-9805f1628bb7

epan/wslua/init_wslua.c
epan/wslua/wslua_util.c

index b3942f4275d1f62820408ba74747bb77a991da80..790ea221909454efeda4eb7c1b0b0bb4d58be7eb 100644 (file)
@@ -307,7 +307,7 @@ int wslua_init(lua_State* LS) {
            filename = NULL;
         }
 
-        while((filename = ex_opt_get_next("lua_script"))) {
+        while((filename = (gchar *)ex_opt_get_next("lua_script"))) {
             lua_load_script(filename);
         }
     }
index 2cb22b1de8d66ebf4ba467d6780c31bd7e170ac6..7b38eb3e17be807702d0d43f70a2f4826bd3e790 100644 (file)
@@ -145,7 +145,7 @@ WSLUA_FUNCTION wslua_debug( lua_State* L ) { /* Will add a log entry with debug
 }
 
 /* The returned filename was g_malloc()'d so the caller must free it */
-const char* wslua_get_actual_filename(const char* fname) {
+char* wslua_get_actual_filename(const char* fname) {
        static char fname_clean[256];
        char* f;
        char* filename;