summaryrefslogtreecommitdiff
path: root/epan/proto.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/proto.c
parent076784cdaee4721e4bce94824b5b92db9888d28a (diff)
downloadwireshark-95dee44a77c8779776ce602b09fb33c703c4a32e.tar.gz
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/proto.c')
-rw-r--r--epan/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 5c66291985..696831f7c0 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -8037,7 +8037,7 @@ typedef struct {
} offset_search_t;
static gboolean
-check_for_offset(proto_node *node, const gpointer data)
+check_for_offset(proto_node *node, gpointer data)
{
field_info *fi = PNODE_FINFO(node);
offset_search_t *offsearch = (offset_search_t *)data;
@@ -8078,7 +8078,7 @@ proto_find_field_from_offset(proto_tree *tree, guint offset, tvbuff_t *tvb)
static gboolean
-check_for_undecoded(proto_node *node, const gpointer data)
+check_for_undecoded(proto_node *node, gpointer data)
{
field_info *fi = PNODE_FINFO(node);
gchar* decoded = (gchar*)data;