mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
fix up libxmltree interfaces, so that useless casts can be removed
Lots of places hat casts from (const char*) to (char *) to silence a "deprecated conversion" warning. Instead of casting (which is inherently wrong), fix up the libxmltree interfaces. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@117 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1205,10 +1205,10 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
||||
else if (strcmp("mp3", type) == 0) skip = false;
|
||||
else if (strcmp("application/mp3", type) == 0) skip = false;
|
||||
} else {
|
||||
url = xmlGetAttribute(element, (char *) urltag);
|
||||
name = xmlGetAttribute(element, (char *) nametag);
|
||||
url = xmlGetAttribute(element, urltag);
|
||||
name = xmlGetAttribute(element, nametag);
|
||||
if (bitratetag) {
|
||||
ptr = xmlGetAttribute(element, (char *) bitratetag);
|
||||
ptr = xmlGetAttribute(element, bitratetag);
|
||||
if (ptr)
|
||||
bitrate = atoi(ptr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user