aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-28 13:00:39 -0800
committerGuy Harris <guy@alum.mit.edu>2015-12-28 22:24:56 +0000
commitbc13e834cc681c6a01a39d25b125a23950139296 (patch)
tree784012e8930307518340cfd26597d776e1974657 /epan/packet.c
parentc2b774326471f03c81a23466aac9308f931f865e (diff)
Don't cast away constness for the key in g_hash_table_lookup().
Change-Id: Ibd5cf8947028d90a734de629e3c4202af9d0514b Reviewed-on: https://code.wireshark.org/review/12887 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 0d810ee9a8..0e3c02b5f3 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -2156,7 +2156,7 @@ has_heur_dissector_list(const gchar *name) {
heur_dtbl_entry_t* find_heur_dissector_by_unique_short_name(const char *short_name)
{
- return (heur_dtbl_entry_t*)g_hash_table_lookup(heuristic_short_names, (gpointer)short_name);
+ return (heur_dtbl_entry_t*)g_hash_table_lookup(heuristic_short_names, short_name);
}
void
@@ -2205,7 +2205,7 @@ heur_dissector_add(const char *name, heur_dissector_t dissector, const char *dis
}
/* Ensure short_name is unique */
- if (g_hash_table_lookup(heuristic_short_names, (gpointer)short_name) != NULL) {
+ if (g_hash_table_lookup(heuristic_short_names, short_name) != NULL) {
g_error("Duplicate heuristic short_name \"%s\"!"
" This might be caused by an inappropriate plugin or a development error.", short_name);
}