aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-10 17:50:34 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-11 01:51:07 +0000
commit9855beff31310162990131c70444fd2662a64b7c (patch)
tree13c43ded97ca8ea779391cbaf3535e540c4075c5 /epan/packet.c
parent144855ce6df8e5934c00ae3729eed708406c39b2 (diff)
Make the type of the second argument to a DATFunc_heur_table explicit.
It's always pased a heur_dissector_list_t *, so give it that type, rather than having it be a generic pointer. Change-Id: Ia6a045bb1b96c2f6ef3e23f27928e0b52f7cfb9f Reviewed-on: https://code.wireshark.org/review/5713 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 53085d5c02..a0379a5c25 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -2054,9 +2054,9 @@ typedef struct heur_dissector_foreach_table_info {
static void
-dissector_dump_heur_decodes_display(const gchar *table_name, const gpointer value, const gpointer user_data _U_)
+dissector_dump_heur_decodes_display(const gchar *table_name, heur_dissector_list_t *listptr, const gpointer user_data _U_)
{
- heur_dissector_list_t sub_dissectors = *(heur_dissector_list_t *)value;
+ heur_dissector_list_t sub_dissectors = *listptr;
GSList *entry;
heur_dtbl_entry_t *hdtbl_entry;
@@ -2078,7 +2078,7 @@ dissector_all_heur_tables_foreach_table_func (gpointer key, const gpointer value
heur_dissector_foreach_table_info_t *info;
info = (heur_dissector_foreach_table_info_t *)user_data;
- (*info->caller_func)((gchar*)key, value, info->caller_data);
+ (*info->caller_func)((gchar*)key, (heur_dissector_list_t *)value, info->caller_data);
}
/*