From b2a30ea47878ca335a603dff14c87a01a168770e Mon Sep 17 00:00:00 2001 From: Cesare Tirabassi Date: Thu, 23 Jul 2009 23:58:27 +0200 Subject: [PATCH] the why recasting when you can simply declare it commit ... --- src/weather.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/weather.c b/src/weather.c index c6a73600..b28395aa 100644 --- a/src/weather.c +++ b/src/weather.c @@ -42,7 +42,7 @@ /* Xpath expressions for XOAP xml parsing */ #define NUM_XPATH_EXPRESSIONS 7 -const char *xpath_expression[NUM_XPATH_EXPRESSIONS] = { +const xmlChar *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((xmlChar *)xpath_expression[i], xpathCtx); + xpathObj = xmlXPathEvalExpression(xpath_expression[i], xpathCtx); if ((xpathObj != NULL) && (xpathObj->nodesetval->nodeTab[0]->type == XML_ELEMENT_NODE)) { content = (char *)xmlNodeGetContent(xpathObj->nodesetval->nodeTab[0]); switch(i) {