diff options
author | Evan Huus <eapache@gmail.com> | 2012-08-29 22:19:29 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-08-29 22:19:29 +0000 |
commit | baf111a23c6975f64dec6abd5da2c7d52a84a9a1 (patch) | |
tree | d6ef95b2c19b9bf8140aa411ad12291079d9fb45 /tshark.c | |
parent | 2ec7c89c33f9b45df47562e30d37a1f74af257f8 (diff) | |
download | wireshark-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } /* |