summaryrefslogtreecommitdiff
path: root/src/libezxml
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-12-23 21:59:34 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-12-23 21:59:34 +0100
commitcad2be0b4ffd9490ca83cdb355b6402838811413 (patch)
treea798f3199bbab548362bf95f49055b80dfdf3026 /src/libezxml
parent65517aebee0a7624b31dd9ce481e7f00ece3d497 (diff)
downloadpianobar-windows-cad2be0b4ffd9490ca83cdb355b6402838811413.tar.gz
pianobar-windows-cad2be0b4ffd9490ca83cdb355b6402838811413.tar.bz2
pianobar-windows-cad2be0b4ffd9490ca83cdb355b6402838811413.zip
Fix warnings found by -Wcast-qual
Diffstat (limited to 'src/libezxml')
-rw-r--r--src/libezxml/ezxml.c4
1 files changed, 2 insertions, 2 deletions
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;", "&#60;", "gt;", "&#62;", "quot;", "&#34;",
"apos;", "&#39;", "amp;", "&#38;", NULL };