diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-04-05 18:24:25 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-14 21:42:28 +0000 |
commit | 9bb4edfeece774888709c42d47e019f0816be443 (patch) | |
tree | 6b9a84d5b1c9343187a80825fcf1bb6b6566da93 /epan/packet.c | |
parent | 40a3cbfca5e8d7d7c4445795674575510fc70d29 (diff) |
packet.c: remove const compiler warning.
Change-Id: Ida9384dccb0e8bacbc9aad39515c3dae9c5ce563
Reviewed-on: https://code.wireshark.org/review/14768
Reviewed-by: João Valverde <j@v6e.pt>
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/packet.c b/epan/packet.c index 4818c488e2..21ea2d2b88 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -2167,7 +2167,7 @@ deregister_dissector_table(const char *name) dissector_table_t sub_dissectors = find_dissector_table(name); if (!sub_dissectors) return; - g_hash_table_remove(dissector_tables, (gpointer)name); + g_hash_table_remove(dissector_tables, name); } const char * @@ -2318,7 +2318,7 @@ heur_dissector_delete(const char *name, heur_dissector_t dissector, const int pr if (found_entry) { heur_dtbl_entry_t *found_hdtbl_entry = (heur_dtbl_entry_t *)(found_entry->data); g_free(found_hdtbl_entry->list_name); - g_hash_table_remove(heuristic_short_names, (gpointer)found_hdtbl_entry->short_name); + g_hash_table_remove(heuristic_short_names, found_hdtbl_entry->short_name); g_slice_free(heur_dtbl_entry_t, found_entry->data); sub_dissectors->dissectors = g_slist_delete_link(sub_dissectors->dissectors, found_entry); @@ -2717,7 +2717,7 @@ remove_depend_dissector_from_list(depend_dissector_list_t sub_dissectors, const GSList *found_entry; found_entry = g_slist_find_custom(sub_dissectors->dissectors, - (gpointer)dependent, (GCompareFunc)strcmp); + dependent, (GCompareFunc)strcmp); if (found_entry) { g_free(found_entry->data); @@ -2744,10 +2744,10 @@ deregister_dissector(const char *name) dissector_handle_t handle = find_dissector(name); if (handle == NULL) return; - g_hash_table_remove(registered_dissectors, (gpointer)name); - g_hash_table_remove(depend_dissector_lists, (gpointer)name); + g_hash_table_remove(registered_dissectors, name); + g_hash_table_remove(depend_dissector_lists, name); g_hash_table_foreach(depend_dissector_lists, remove_depend_dissector_ghfunc, (gpointer)name); - g_hash_table_remove(heur_dissector_lists, (gpointer)name); + g_hash_table_remove(heur_dissector_lists, name); destroy_dissector_handle(handle); } |