summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-08-29 22:19:29 +0000
committerEvan Huus <eapache@gmail.com>2012-08-29 22:19:29 +0000
commitbaf111a23c6975f64dec6abd5da2c7d52a84a9a1 (patch)
treed6ef95b2c19b9bf8140aa411ad12291079d9fb45 /tshark.c
parent2ec7c89c33f9b45df47562e30d37a1f74af257f8 (diff)
downloadwireshark-baf111a23c6975f64dec6abd5da2c7d52a84a9a1.tar.gz
Add casts to fix compilation with GCC.
Remove * from gconstpointers, they are already pointer types. Add modelines to packet.c and clean up indentation a bit. svn path=/trunk/; revision=44698
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tshark.c b/tshark.c
index 789cc01bda..aa7919304b 100644
--- a/tshark.c
+++ b/tshark.c
@@ -462,7 +462,7 @@ find_protocol_name_func(const gchar *table _U_, gpointer handle, gpointer user_d
*/
static gint
-compare_dissector_key_name(gconstpointer* dissector_a, gconstpointer* dissector_b)
+compare_dissector_key_name(gconstpointer dissector_a, gconstpointer dissector_b)
{
return strcmp((const char*)dissector_a, (const char*)dissector_b);
}
@@ -477,7 +477,7 @@ fprint_all_layer_types(FILE *output)
{
prev_display_dissector_name = NULL;
- dissector_all_tables_foreach_table(display_dissector_table_names, (gpointer)output, compare_dissector_key_name);
+ dissector_all_tables_foreach_table(display_dissector_table_names, (gpointer)output, (GCompareFunc)compare_dissector_key_name);
}
/*