aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-01-02 03:58:08 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-01-02 03:58:08 +0000
commitbc958ed887109a326209bd9988a637195a11fb8b (patch)
tree450ad73021d5cd348dc3e7ba43164f3c0e652d24 /epan/proto.c
parent75a106edb3ab4b6b34e9f6967bfb833193deb437 (diff)
Cast away the constness of the argument to "g_tree_lookup()" - another
GLib function with an unfortunate signature. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12923 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 20183a9197..0a36548286 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -480,7 +480,7 @@ header_field_info*
proto_registrar_get_byname(const char *field_name)
{
g_assert(field_name != NULL);
- return g_tree_lookup(gpa_name_tree, field_name);
+ return g_tree_lookup(gpa_name_tree, (gpointer)field_name);
}
/* Add a text-only node, leaving it to our caller to fill the text in */