X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fconfig.c;h=d86244349fb63a0716b693659e3ffebca483d41f;hb=8acdfb7a90bd20104f67a2b1dfc9023c54473422;hp=8747af7e180ea2c0fe19a775a27cced1c2e134ff;hpb=299df2fbd7f1bf889851ac605d5502848d725e40;p=pazpar2-moved-to-github.git diff --git a/src/config.c b/src/config.c index 8747af7..d862443 100644 --- a/src/config.c +++ b/src/config.c @@ -1,4 +1,4 @@ -/* $Id: config.c,v 1.16 2007-03-20 03:42:53 quinn Exp $ */ +/* $Id: config.c,v 1.17 2007-03-20 07:27:51 adam Exp $ */ #include @@ -36,11 +36,12 @@ static struct conf_service *parse_service(xmlNode *node) r->num_sortkeys = r->num_metadata = 0; // Allocate array of conf metadata and sortkey tructs, if necessary for (n = node->children; n; n = n->next) - if (n->type == XML_ELEMENT_NODE && !strcmp(n->name, "metadata")) + if (n->type == XML_ELEMENT_NODE && !strcmp((const char *) + n->name, "metadata")) { - xmlChar *sortkey = xmlGetProp(n, "sortkey"); + xmlChar *sortkey = xmlGetProp(n, (xmlChar *) "sortkey"); r->num_metadata++; - if (sortkey && strcmp(sortkey, "no")) + if (sortkey && strcmp((const char *) sortkey, "no")) r->num_sortkeys++; xmlFree(sortkey); } @@ -57,7 +58,7 @@ static struct conf_service *parse_service(xmlNode *node) { if (n->type != XML_ELEMENT_NODE) continue; - if (!strcmp(n->name, "metadata")) + if (!strcmp(n->name, (const char *) "metadata")) { struct conf_metadata *md = &r->metadata[md_node]; xmlChar *name = xmlGetProp(n, "name");