aboutsummaryrefslogtreecommitdiffstats
path: root/epan/decode_as.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/decode_as.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/decode_as.c')
-rw-r--r--epan/decode_as.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/decode_as.c b/epan/decode_as.c
index 3f9c63d129..7257711e1f 100644
--- a/epan/decode_as.c
+++ b/epan/decode_as.c
@@ -99,7 +99,7 @@ void decode_as_default_populate_list(const gchar *table_name, decode_as_add_to_l
dissector_table_foreach_handle(table_name, decode_proto_add_to_list, &populate);
}
-gboolean decode_as_default_reset(const char *name, const gpointer pattern)
+gboolean decode_as_default_reset(const gchar *name, gconstpointer pattern)
{
switch (get_dissector_table_selector_type(name)) {
case FT_UINT8:
@@ -121,7 +121,7 @@ gboolean decode_as_default_reset(const char *name, const gpointer pattern)
return TRUE;
}
-gboolean decode_as_default_change(const char *name, const gpointer pattern, gpointer handle, gchar* list_name _U_)
+gboolean decode_as_default_change(const gchar *name, gconstpointer pattern, gpointer handle, gchar *list_name _U_)
{
dissector_handle_t* dissector = (dissector_handle_t*)handle;
if (dissector != NULL) {