summaryrefslogtreecommitdiff
path: root/ui/decode_as_utils.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-01-20 11:53:57 +0000
committerJoão Valverde <j@v6e.pt>2016-01-21 02:37:01 +0000
commitd403c157395af5a7a6cc432efbcb0a806a9144ad (patch)
treedc4fb24100aef6e0ceba0108cb6306a1b02f5e32 /ui/decode_as_utils.c
parent5c1d504bf7195848f2c520c3375a18a81d499f5d (diff)
downloadwireshark-d403c157395af5a7a6cc432efbcb0a806a9144ad.tar.gz
decode_as_utils: Fix warning [-Wcast-qual]
Change-Id: Ia30c3fd579a72b3bff882cb03c06de12bcd743b3 Reviewed-on: https://code.wireshark.org/review/13442 Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'ui/decode_as_utils.c')
-rw-r--r--ui/decode_as_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/decode_as_utils.c b/ui/decode_as_utils.c
index 6a6f25fe4a..d905a76547 100644
--- a/ui/decode_as_utils.c
+++ b/ui/decode_as_utils.c
@@ -61,7 +61,7 @@ typedef struct lookup_entry {
*/
typedef struct dissector_delete_item {
/* The name of the dissector table */
- const gchar *ddi_table_name;
+ gchar *ddi_table_name;
/* The type of the selector in that dissector table */
ftenum_t ddi_selector_type;
/* The selector in the dissector table */
@@ -246,7 +246,7 @@ decode_clear_all(void)
default:
g_assert_not_reached();
}
- g_free((gchar *)item->ddi_table_name);
+ g_free(item->ddi_table_name);
g_free(item);
}
g_slist_free(dissector_reset_list);