aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-01-05 12:06:36 +0000
committerAnders Broman <a.broman58@gmail.com>2016-02-16 05:10:49 +0000
commit95dee44a77c8779776ce602b09fb33c703c4a32e (patch)
treea51cf7022e234111608facbe550b9795c96696e9 /epan/packet.c
parent076784cdaee4721e4bce94824b5b92db9888d28a (diff)
const gpointer -> gconstpointer
'const gpointer' is the same as 'void *const'. Replace with gconstpointer where straightforward (assuming that was the intent) and use gpointer everywhere else for clarity (that does not change *API* constness contract; it just means a variable is not declared immutable inside the called funtion). Change-Id: Iad2ef13205bfb4ff0056b2bce056353b58942267 Reviewed-on: https://code.wireshark.org/review/13945 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> 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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 90f417006a..343eb3040d 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1980,14 +1980,14 @@ typedef struct dissector_foreach_table_info {
* This is used if we directly process the hash table.
*/
static void
-dissector_all_tables_foreach_table_func (gpointer key, const gpointer value, const gpointer user_data)
+dissector_all_tables_foreach_table_func (gpointer key, gpointer value, gpointer user_data)
{
dissector_table_t table;
dissector_foreach_table_info_t *info;
table = (dissector_table_t)value;
info = (dissector_foreach_table_info_t *)user_data;
- (*info->caller_func)((gchar*)key, table->ui_name, info->caller_data);
+ (*info->caller_func)((gchar *)key, table->ui_name, info->caller_data);
}
/*
@@ -2415,12 +2415,12 @@ typedef struct heur_dissector_foreach_table_info {
* This is used if we directly process the hash table.
*/
static void
-dissector_all_heur_tables_foreach_table_func (gpointer key, const gpointer value, const gpointer user_data)
+dissector_all_heur_tables_foreach_table_func (gpointer key, gpointer value, gpointer user_data)
{
heur_dissector_foreach_table_info_t *info;
info = (heur_dissector_foreach_table_info_t *)user_data;
- (*info->caller_func)((gchar*)key, (struct heur_dissector_list *)value, info->caller_data);
+ (*info->caller_func)((gchar *)key, (struct heur_dissector_list *)value, info->caller_data);
}
/*
@@ -2478,7 +2478,7 @@ display_heur_dissector_table_entries(const char *table_name,
}
static void
-dissector_dump_heur_decodes_display(const gchar *table_name, struct heur_dissector_list *listptr _U_, const gpointer user_data _U_)
+dissector_dump_heur_decodes_display(const gchar *table_name, struct heur_dissector_list *listptr _U_, gpointer user_data _U_)
{
heur_dissector_table_foreach(table_name, display_heur_dissector_table_entries, NULL);
}
@@ -2774,7 +2774,7 @@ void call_heur_dissector_direct(heur_dtbl_entry_t *heur_dtbl_entry, tvbuff_t *tv
static void
dissector_dump_decodes_display(const gchar *table_name,
- ftenum_t selector_type _U_, const gpointer key, const gpointer value,
+ ftenum_t selector_type _U_, gpointer key, gpointer value,
gpointer user_data _U_)
{
guint32 selector = GPOINTER_TO_UINT (key);