From cad2be0b4ffd9490ca83cdb355b6402838811413 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 23 Dec 2011 21:59:34 +0100 Subject: Fix warnings found by -Wcast-qual --- src/libezxml/ezxml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libezxml') diff --git a/src/libezxml/ezxml.c b/src/libezxml/ezxml.c index ced87ea..0e1dd5d 100644 --- a/src/libezxml/ezxml.c +++ b/src/libezxml/ezxml.c @@ -108,7 +108,7 @@ static ezxml_t ezxml_insert(ezxml_t xml, ezxml_t dest, size_t off) // Adds a child tag. off is the offset of the child tag relative to the start // of the parent tag's character content. Returns the child tag. -static ezxml_t ezxml_add_child(ezxml_t xml, const char *name, size_t off) +static ezxml_t ezxml_add_child(ezxml_t xml, char *name, size_t off) { ezxml_t child; @@ -131,7 +131,7 @@ ezxml_t ezxml_child(ezxml_t xml, const char *name) } // returns a new empty ezxml structure with the given root tag name -static ezxml_t ezxml_new(const char *name) +static ezxml_t ezxml_new(char *name) { static char *ent[] = { "lt;", "<", "gt;", ">", "quot;", """, "apos;", "'", "amp;", "&", NULL }; -- cgit v1.2.3