diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-03-24 23:49:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-03-24 23:49:22 +0000 |
commit | 001a6eb1650d8657997d327c14a98a6712674456 (patch) | |
tree | 6c3e865fe462cacb2e0aee3447101b9320fead37 /epan | |
parent | b8a67334a134074f870fa20ce8198ac36487a474 (diff) |
Squelch some "casting away constness" warnings.
svn path=/trunk/; revision=48542
Diffstat (limited to 'epan')
-rw-r--r-- | epan/wslua/wslua.h | 2 | ||||
-rw-r--r-- | epan/wslua/wslua_proto.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 0d33a9f157..eaf93b9adb 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -152,7 +152,7 @@ typedef struct _wslua_proto_t { struct _wslua_distbl_t { dissector_table_t table; - gchar* name; + const gchar* name; }; struct _wslua_col_info { diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index 4facaf3854..fad68b1728 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -1624,8 +1624,8 @@ WSLUA_CONSTRUCTOR DissectorTable_new (lua_State *L) { #define WSLUA_OPTARG_DissectorTable_new_UINAME 2 /* The name of the table in the User Interface (defaults to the name given). */ #define WSLUA_OPTARG_DissectorTable_new_TYPE 3 /* Either ftypes.UINT{8,16,24,32} or ftypes.STRING (defaults to ftypes.UINT32) */ #define WSLUA_OPTARG_DissectorTable_new_BASE 4 /* Either base.NONE, base.DEC, base.HEX, base.OCT, base.DEC_HEX or base.HEX_DEC (defaults to base.DEC) */ - gchar* name = (gchar*)luaL_checkstring(L,WSLUA_ARG_DissectorTable_new_TABLENAME); - gchar* ui_name = (gchar*)luaL_optstring(L,WSLUA_OPTARG_DissectorTable_new_UINAME,name); + const gchar* name = (const gchar*)luaL_checkstring(L,WSLUA_ARG_DissectorTable_new_TABLENAME); + const gchar* ui_name = (const gchar*)luaL_optstring(L,WSLUA_OPTARG_DissectorTable_new_UINAME,name); enum ftenum type = (enum ftenum)luaL_optint(L,WSLUA_OPTARG_DissectorTable_new_TYPE,FT_UINT32); unsigned base = (unsigned)luaL_optint(L,WSLUA_OPTARG_DissectorTable_new_BASE,BASE_DEC); |