From: Dennis Schafroth Date: Fri, 28 Oct 2011 08:32:00 +0000 (+0200) Subject: Fix missing return type. Fix function name X-Git-Tag: v4.2.18~9 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=06ff64edbe47561d10357592c23dcd196b60f116;p=yaz-moved-to-github.git Fix missing return type. Fix function name --- diff --git a/src/solr.c b/src/solr.c index 5c43831..d3e9c11 100644 --- a/src/solr.c +++ b/src/solr.c @@ -204,13 +204,14 @@ static int yaz_solr_decode_facet_counts(ODR o, xmlNodePtr root, return 0; } -static yaz_solr_decode_suggestion_values(xmlNodePtr ptr, WRBUF wrbuf) { +static void yaz_solr_decode_suggestion_values(xmlNodePtr ptr, WRBUF wrbuf) +{ xmlNodePtr node; for (node = ptr; node; node= node->next) { - if (!strcmp(ptr->name,"lst")) { + if (!strcmp((char*)ptr->name, "lst")) { xmlNodePtr child; for (child = ptr->children; child; child= child->next) { - if (match(child, "str", "name", "word")) { + if (match_xml_node_attribute(child, "str", "name", "word")) { wrbuf_puts(wrbuf, ""); extract_text_node(child, wrbuf); wrbuf_puts(wrbuf, "\n"); @@ -220,7 +221,8 @@ static yaz_solr_decode_suggestion_values(xmlNodePtr ptr, WRBUF wrbuf) { } } -static yaz_solr_decode_suggestion_lst(xmlNodePtr lstPtr, WRBUF wrbuf) { +static void yaz_solr_decode_suggestion_lst(xmlNodePtr lstPtr, WRBUF wrbuf) +{ xmlNodePtr node; for (node = lstPtr; node; node= node->next) { if (match_xml_node_attribute(node, "arr", "name", "suggestion")) {