aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-epl-profile-parser.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-03-07 21:17:03 -0800
committerGuy Harris <guy@alum.mit.edu>2018-03-08 05:17:46 +0000
commit241b274b5f8e6f7e3ea22f7598a271f48ccd3191 (patch)
treedd309661bfa5facbf1525730435aee73a12d0bd9 /epan/dissectors/packet-epl-profile-parser.c
parent695fbb9be0122e280755c11b9e0b89e9e256875b (diff)
Don't cast away constness.
Change-Id: I1d1f6338fcd4a7c5873a9d758cb56324a6ce0fcf Reviewed-on: https://code.wireshark.org/review/26354 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-epl-profile-parser.c')
-rw-r--r--epan/dissectors/packet-epl-profile-parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-epl-profile-parser.c b/epan/dissectors/packet-epl-profile-parser.c
index f145cf5f5b..dd07f81c54 100644
--- a/epan/dissectors/packet-epl-profile-parser.c
+++ b/epan/dissectors/packet-epl-profile-parser.c
@@ -435,7 +435,7 @@ populate_datatype_list(xmlNodeSetPtr nodes, void *_profile)
if (subnode->type == XML_ELEMENT_NODE)
{
struct datatype *type;
- const struct epl_datatype *ptr = epl_type_to_hf((char*)subnode->name);
+ const struct epl_datatype *ptr = epl_type_to_hf((const char*)subnode->name);
if (!ptr)
{
g_log(NULL, G_LOG_LEVEL_INFO, "Skipping unknown type '%s'\n", subnode->name);
@@ -464,8 +464,8 @@ parse_obj_tag(xmlNode *cur, struct od_entry *out, struct profile *profile) {
for(attr = cur->properties; attr; attr = attr->next)
{
- const char *key = (char*)attr->name,
- *val = (char*)attr->children->content;
+ const char *key = (const char*)attr->name,
+ *val = (const char*)attr->children->content;
if (g_str_equal("index", key))
{