1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 11:05:18 +00:00

Revert "the why recasting when you can simply declare it commit ..."

This reverts commit b2a30ea478.
This commit is contained in:
Cesare Tirabassi 2009-07-24 11:30:27 +02:00
parent b2a30ea478
commit f5c8964510

View File

@ -42,7 +42,7 @@
/* Xpath expressions for XOAP xml parsing */
#define NUM_XPATH_EXPRESSIONS 7
const xmlChar *xpath_expression[NUM_XPATH_EXPRESSIONS] = {
const char *xpath_expression[NUM_XPATH_EXPRESSIONS] = {
"/weather/cc/lsup", "/weather/cc/tmp", "/weather/cc/t",
"/weather/cc/bar/r", "/weather/cc/wind/s", "/weather/cc/wind/d",
"/weather/cc/hmid"
@ -97,7 +97,7 @@ static void parse_cc(PWEATHER *res, xmlXPathContextPtr xpathCtx)
xmlXPathObjectPtr xpathObj;
for (i = 0; i < NUM_XPATH_EXPRESSIONS; i++) {
xpathObj = xmlXPathEvalExpression(xpath_expression[i], xpathCtx);
xpathObj = xmlXPathEvalExpression((xmlChar *)xpath_expression[i], xpathCtx);
if ((xpathObj != NULL) && (xpathObj->nodesetval->nodeTab[0]->type == XML_ELEMENT_NODE)) {
content = (char *)xmlNodeGetContent(xpathObj->nodesetval->nodeTab[0]);
switch(i) {